Skip to content

Avoid loading modules recursively. #241

Open
@typeswitch-dev

Description

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerCompiler internals.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions