You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could selectively export members of a given module. I think this would only have implications for the compiler itself, and any code should not care, as long as they're doing the right thing.
This would also clean up naming collisions in some scenarios, as you can only have collisions if the values are exported, the modules imported, and they are named the same.
This does carry the side effect of Program not simply containing a flat list of the AST, as who imports what must be tracked and resolved.
The text was updated successfully, but these errors were encountered:
It would be nice if we could selectively
export
members of a given module. I think this would only have implications for the compiler itself, and any code should not care, as long as they're doing the right thing.For example:
This would also clean up naming collisions in some scenarios, as you can only have collisions if the values are exported, the modules imported, and they are named the same.
This does carry the side effect of
Program
not simply containing a flat list of the AST, as who imports what must be tracked and resolved.The text was updated successfully, but these errors were encountered: