Skip to content

'Create Library Packages' page - document that library directives should be unique #1181

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

Closed
natebosch opened this issue Oct 3, 2018 · 2 comments
Labels
e0-minutes Can complete in < 60 minutes of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.

Comments

@natebosch
Copy link
Member

Page URL: https://www.dartlang.org/guides/libraries/create-library-packages
Page source: https://github.com/dart-lang/site-www/tree/master/src/_guides/libraries/create-library-packages.md

Until we get dart-lang/dartdoc#1082 resolved there is still a need for many libraries to have a library directive.

In Dart you can't import two libraries with the same name - so we should call out that if you're using a library directive in a package you distribute the library directive should always be unique - like package_name.something rather than something.

@kwalrath kwalrath added p2-medium Necessary but not urgent concern. Resolve when possible. e0-minutes Can complete in < 60 minutes of normal, not dedicated, work labels Jan 31, 2019
@parlough
Copy link
Member

I know this is four years late...But do you think we need to mention this now that no-name library declarations will be allowed in 2.19? Would it be sufficient to just expand on our documentation on how to use a no-name library declaration and add documentation to that (tracked in #4314)?

@parlough
Copy link
Member

I'm going to close this as the library name clash rule was removed from the spec in dart-lang/language#1083 and the analyzer removed the warning in dart-lang/sdk@ef147c0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e0-minutes Can complete in < 60 minutes of normal, not dedicated, work p2-medium Necessary but not urgent concern. Resolve when possible.
Projects
None yet
Development

No branches or pull requests

3 participants