Closed thomasvergne closed 3 months ago
Working on better module resolution in PR #29. We're able for now to check for undefined variables and interfaces in extensions. Existence checking on types will be implemented in the future.
We implemented public requires, letting the user export some requires, like what's done with variables. I'm thinking of implementing such a keyword on variable declarations too.
The current module resolution is fully working but lacks security features. For instance, isolation between modules is terrible, an imported module
A
in a moduleB
could be accessed in a moduleC
that imports moduleB
. So, we shall implement a better isolated module resolution by renaming every imported variable with a qualifier associated with their name. This would highly impact the current codebase as it depends much on this "breach".