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

Namespaces? #2047

Closed
Darker7 opened this issue Jan 16, 2020 · 2 comments
Closed

Namespaces? #2047

Darker7 opened this issue Jan 16, 2020 · 2 comments

Comments

@Darker7
Copy link

Darker7 commented Jan 16, 2020

I was looking for a way to create namespaces in Elm but neither the guide, nor DuckDuckGo told me anything about them. And when I came here to look for an issue about them I found neither an open, nor closed one.
So I was wondering whether I missed something obvious; is there somewhere a statement on why Elm doesn't do namespaces? or maybe Elm does do namespaces and I've just missed it somehow? or maybe you're planning on implementing them and I've just searched in the wrong places?

I've already cooked about a whole proposal for namespaces in my head but I figured it'd be better to ask the above before busting down the door with it :Ü™

@rlefevre
Copy link
Member

rlefevre commented Jan 16, 2020

What is needed is a way to avoid the rare but existing modules conflicts.
See #1625 for the meta issue.

Also see #1043 and https://discourse.elm-lang.org/t/state-of-conflicting-modules-with-elm-0-19/2991 for details and some proposals.

What might help at this point would be to list the syntax used in OCaml, SML, Haskell, Java, Python, Ruby, Rust, etc. with links to the feature description and open a new issue with those.

@Darker7
Copy link
Author

Darker7 commented Jan 16, 2020

Hmm, the proposal for namespaces I've cooked up is completely from scratch. I'll look through the links provided, tomorrow morning after I've got a good nights sleep then and probably post my proposal :Ü™

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants