On Tue, Jul 7, 2015 at 12:24 PM, Anthony Carrico <[email protected]>
wrote:

> I wonder how much trouble it would cause if there was a unified syntax
> which considered a directory as a (standardized) module.
>
> In:
>
> foo/bar/bah
>
> "bar" might be a directory "pseudo module" or a real module. I guess it
> would be possible to define two submodules with the same name (once in a
> file, and once in the filesystem). A rule would be needed to make one of
> these primary, and the other shadowed.
>

For what it's worth, Rust does something like this for its module system.
See the "Multiple file crates" section here:
https://doc.rust-lang.org/stable/book/crates-and-modules.html

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-dev/CAKUgKwyXUNtNSWAodM2f-VUQMkBTRYySsfNFNYhN7w%2B_F4p9Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to