Summary

Module names should be unique

Metadata

Description

When you compile a program which uses a module and defines a module of the same name, the compiler should probably give a warning or error.

A practical (simplified) example of this which alicemaz ran into:

http://paste.call-cc.org/paste?id=59272bcd1450867b3db94a2b7a6148fbd39d4f44

I think we can't really do this in the interpreter because re-evaluating an existing module should be possible on the REPL (think incremental development from Emacs etc).

Changes and comments

[2023-11-06 23:07:44 UTC] felix changed milestone from 5.4 to 6.0.0

[2026-07-04 22:25:45 UTC] felix wrote:

Module names are unique and pervasive over the whole runtime environment. Allowing multiple instances of modules with a shared name would add considerable complexity and can easily be worked around by using compound module names with some prefix, like (main internal), (dep internal), etc.

[2026-07-04 22:25:45 UTC] felix changed status from new to closed

[2026-07-04 22:25:45 UTC] felix set resolution to wontfix