I was doing some testing using include files, to see how they interacted together.
I also read this doc: https://typst.app/docs/reference/scripting/#modules
Lets say there is a file "Main.typ" which #includes two files, "A.typ" and "B.typ":
// In Main.typ
#include "A.typ"
#include "B.typ"
From my testing, there can be no interaction between any of the 3 files, except that the contents represented by files "A.typ" and "B.typ" are inserted at their include location within "Main.typ".
Specifically, definitions created within the files are not observed outside the files when they are #included.
I really like this. It prevents symbols from clobbering each other, and from devs creating inter-file spaghetti.
But, besides my testing, I wanted to confirm that I'm not leaving some interaction out.
Does this generally sound correct?