dart-lang / language

Design of the Dart language
Other
2.65k stars 202 forks source link

Implicitly import "import.dart" #675

Open Afsar-Pasha opened 4 years ago

Afsar-Pasha commented 4 years ago

It would be great if import.dart or .import.dart at project level is implicitly imported in every files of the project so we don't have to manually import commonly used imports. It would also make easier to use extensions.

lrhn commented 4 years ago

So the idea is that some library in a package would automatically be imported into all libraries of that package (except itself? 😁)

It would avoid boilerplate import "src/common.dart"; in every library.