dyon
dyon copied to clipboard
Loading module from a folder
With namespaces it is possible to derive the loading order automatically from the use
statements. An algorithm could look at all the files in a folder and figure out how the best way to load them. If a file uses a namespace that is used by another file, then the first file gets loaded and before the second.
This should be as simple as loading from a file, e.g. by adding support for loading from a folder in the load
and load__source_imports
intrinsics.