|
|
|
|
|
by short_sells_poo
2324 days ago
|
|
> But with Julia, everything is everywhere and I'm baffled. This is exactly it. Julia allows you to import and include anything, anywhere. You open a file and it doesn't say anything about where the dependencies are coming from and where this particular piece of code will go. Both of those are defined at the place where this file is included, which itself could be anywhere. It could be a different directory, different file, tucked away in a module. It could be in a dozen other files, or no files at all, and you can't tell from looking at just the source of the file. |
|
1. Never use submodules (they don't add much) 2. Only use `include` within the main `src/MyPackage.jl` file