@@ -4,7 +4,7 @@ Author: Bob Nystrom
4
4
5
5
Status: In-progress
6
6
7
- Version 1.3
7
+ Version 1.4
8
8
9
9
## Motivation
10
10
@@ -147,7 +147,8 @@ It is currently an error for a record field name to begin with `_`
147
147
fields whose name begins with ` _ ` followed by at least one other character
148
148
(even if those later character(s) are ` _ ` ).
149
149
150
- Named fields of record types are unchanged. It is still a compile-time error for a named field name to start with ` _ ` .
150
+ Named fields of record types are unchanged. It is still a compile-time error
151
+ for a named field name to start with ` _ ` .
151
152
152
153
### Local function declarations
153
154
@@ -161,6 +162,27 @@ void f() {
161
162
A local function declaration named ` _ ` is dead code and will produce a warning
162
163
because the function is unreachable.
163
164
165
+ ### Imports
166
+
167
+ ``` dart
168
+ // a.dart
169
+ extension on String {
170
+ bool get isBlank => trim().isEmpty;
171
+ }
172
+ ```
173
+
174
+ ``` dart
175
+ // b.dart
176
+ import 'a.dart' as _; // OK.
177
+
178
+ main() {
179
+ print(''.isBlank); // Prints `true`.
180
+ }
181
+ ```
182
+
183
+ Import prefixes named ` _ ` are non-binding and will provide access to the
184
+ extensions in that library.
185
+
164
186
### Other declarations
165
187
166
188
Top-level variables, top-level function names, type names, member names,
@@ -439,6 +461,9 @@ This lint is included in the core lint set which means that the scale of the bre
439
461
440
462
## Changelog
441
463
464
+ ### 1.4
465
+ - Add section on import prefixes. Discussion: [ language/#3799 ] ( https://github.com/dart-lang/language/issues/3799 )
466
+
442
467
### 1.3
443
468
444
469
- Add section on local function declarations. Discussion: [ language/#3790 ] ( https://github.com/dart-lang/language/issues/3790 )
0 commit comments