mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Fix typos in last newsletter.
Address comments from https://dart-review.googlesource.com/c/sdk/+/12161 Change-Id: I05294112753891732784a38fc5ef14fb7fed291b Reviewed-on: https://dart-review.googlesource.com/12298 Reviewed-by: Florian Loitsch <floitsch@google.com>
This commit is contained in:
parent
140dfd6d89
commit
c5e10d5b78
|
@ -55,7 +55,7 @@ A.gee: 0
|
|||
foo: 1
|
||||
bar: 2
|
||||
```
|
||||
Dart simply evaluates the initial value at first access. This is a consequence of one of Dart's fundamental properties: *no* code is executed before entering `main`. Every code is run as the consequence of the program's actions.
|
||||
Dart simply evaluates the initial value at first access. This is a consequence of one of Dart's fundamental properties: *no* code is executed before entering `main`. All code is run as the consequence of the program's actions.
|
||||
|
||||
This choice has many nice properties. For example, loading additional classes doesn't slow down a program. Instantiating an instance of a class will not initialize the static members of that class, and the instantiation is thus very fast.
|
||||
|
||||
|
@ -75,7 +75,7 @@ main() {
|
|||
```
|
||||
This is allowed and prints `0`. The initializer expression is simply ignored.
|
||||
|
||||
*What happens when the initializer tries to read the field that is currently initialized?*
|
||||
*What happens when the initializer tries to read the field that is currently being initialized?*
|
||||
|
||||
``` dart
|
||||
var x = foo();
|
||||
|
|
Loading…
Reference in a new issue