Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid loading modules recursively. #241

Open
typeswitch-dev opened this issue Apr 13, 2024 · 0 comments
Open

Avoid loading modules recursively. #241

typeswitch-dev opened this issue Apr 13, 2024 · 0 comments
Labels
compiler Compiler internals.

Comments

@typeswitch-dev
Copy link
Contributor

Currently the way modules are loaded is a bit silly: when elaborating module definitions, if an import statement is found, it stops elaborating the current module and starts elaborating the imported module instead (unless it's already loaded). Instead of this, module loading should all happen at a top level, and module imports should be more about making namespaces visible between the various modules loaded at the top level. (Some experimentation is required to figure out how.)

@typeswitch-dev typeswitch-dev added feature New feature or request compiler Compiler internals. and removed feature New feature or request labels Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Compiler internals.
Projects
None yet
Development

No branches or pull requests

1 participant