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

Rethink alternative syntax as optional syntax extension #8

Open
seaneagan opened this issue May 21, 2015 · 1 comment
Open

Rethink alternative syntax as optional syntax extension #8

seaneagan opened this issue May 21, 2015 · 1 comment

Comments

@seaneagan
Copy link

With #5 the alternative syntax is:

import foo:src.bar
import :src.bar

Could instead continue using ".", but just allow omission of the first segment:

import foo.src.bar
import .src.bar
@seaneagan
Copy link
Author

Also it could be relative to the "current library" instead of the "current package", in other words, short for a path import, so:

import .src.bar;

would be short for:

import 'src/bar.dart';

In fact, I tend to always use relative paths to import libraries in the same package. I've had problems with using 'package:` imports for that, and with mixing relative and 'package:' imports.

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

1 participant