I’m reading the docs, and I get that
module is for definitions. I want to make sure I understood:
- Can you also have expressions on RHS of assignment? like
- No loops or other statements ? Because this https://docs.julialang.org/en/v1.0/manual/modules/#Module-initialization-and-precompilation-1 says “… executing all of the statements in a module often involves compiling a large amount of code.”
- What else can you have in a module, aside from definitions of variables and functions? macros?
- Module is not for top-down execution like a script, right?
Thanks in advance!