mirror of
https://github.com/dart-lang/sdk
synced 2024-10-01 19:29:09 +00:00
Mentioning null-aware in 1.12 changelog
BUG=none R=johnniwinther@google.com Review URL: https://codereview.chromium.org//1305273005 .
This commit is contained in:
parent
6b156993db
commit
8c346abeef
|
@ -13,6 +13,14 @@
|
|||
|
||||
## 1.12.0
|
||||
|
||||
### Language changes
|
||||
|
||||
* Null-aware operators
|
||||
* `??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not `null`, otherwise `expr2`.
|
||||
* `??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned `expr` only if `v` is `null`.
|
||||
* `x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`, otherwise evaluates to `null`.
|
||||
* `x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x` is not `null`.
|
||||
|
||||
### Core library changes
|
||||
|
||||
* `dart:async`
|
||||
|
|
Loading…
Reference in a new issue