Skip to content

Commit 997d7b6

Browse files
authored
Added null-shorting rule to treat selector ! like other selectors (#1162)
Discussions about this decision can be found in #1163.
1 parent bcb99bf commit 997d7b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

accepted/future-releases/nnbd/feature-specification.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Status: Draft
66

77
## CHANGELOG
88

9+
2020.10.14
10+
- Include selector `!` among the null-shorting constructs.
11+
912
2020.10.12
1013
- Clarify that operators not mentioned explicitly in the rules
1114
do not participate in the null-shorting transformation.
@@ -1336,6 +1339,8 @@ continuation.
13361339
- `SHORT[EXP(e1), fn[x] => x[EXP(e2)]]`
13371340
- If `e1` translates to `F` then `e1[e2]` translates to:
13381341
- `PASSTHRU[F, fn[x] => x[EXP(e2)]]`
1342+
- If `e` translates to `F` then `e!` translates to:
1343+
- `PASSTHRU[F, fn[x] => x!]`
13391344
- The assignment `e1?.f = e2` translates to:
13401345
- `SHORT[EXP(e1), fn[x] => x.f = EXP(e2)]`
13411346
- The other assignment operators are handled equivalently.

0 commit comments

Comments
 (0)