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

Allow disambiguation when two packages expose modules with the same name #1625

Open
evancz opened this issue Aug 3, 2017 · 0 comments
Open

Comments

@evancz
Copy link
Member

evancz commented Aug 3, 2017

People have ran into cases where two different packages expose modules with the same name. Reported examples include:

In some of these cases, I do not understand why folks are using two packages for the same thing. The Element case is the best one in my opinion, even though it seems quite unlikely. It makes sense that they both use that name and have different goals. Should they end up in the same project though? Less clear. Also, when you have a local module, you can always choose a different name.

If you have other examples, open a new issue. Just give the error and reference this issue.

Design considerations include:

  • Should it be easy to use two packages that claim to solve the same problem? Seems bad.
  • Will people do silly module renaming to work around this? Not observed so far, but would be bad to end up with silly names or "conventions" to subvert the previous design consideration.
  • Can the syntax really be nice enough to ensure that "conventions" do not arise anyway?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant