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

Disallow import dart #9

Open
seaneagan opened this issue May 21, 2015 · 3 comments
Open

Disallow import dart #9

seaneagan opened this issue May 21, 2015 · 3 comments

Comments

@seaneagan
Copy link

No description provided.

@seaneagan
Copy link
Author

Also should disallow import 'package:dart/foo.dart'; in this DEP if it's not already disallowed by current dart.

@lrhn
Copy link

lrhn commented May 22, 2015

No need to disallow it if you use a different syntax for dart-imports.
I'd recommend using import dart:async; instead, and reserve all the dotted-identifiers for packages.

In general, we might want to allowing omitting the quotes. URIs have a well-defined syntax that can't contain whitespace. If we say that an import must start with a URI that doesn't contain a semicolon, then the quotes would be unnecessary.

@sigmundch
Copy link
Owner

In general, we might want to allowing omitting the quotes. URIs have a well-defined syntax that can't contain whitespace. If we say that an import must start with a URI that doesn't contain a semicolon, then the quotes would be unnecessary.

Interesting.... I like this!

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

3 participants