Commit 93d7b65
committed
Forbid Sentinel conversion to bool
Going with a strict implementation as early as possible.
This restriction can always be relaxed at a later time.
A truth test on a sentinel implies that the sentinel is mixed in
with other types during the test.
In nearly all cases this is incorrect and could result in
unexpected behavior.1 parent 232a38f commit 93d7b65
File tree
3 files changed
+13
-1
lines changed- doc
- src
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
1048 | 1047 | | |
1049 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1050 | 1053 | | |
1051 | 1054 | | |
1052 | 1055 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9337 | 9337 | | |
9338 | 9338 | | |
9339 | 9339 | | |
| 9340 | + | |
| 9341 | + | |
| 9342 | + | |
| 9343 | + | |
| 9344 | + | |
9340 | 9345 | | |
9341 | 9346 | | |
9342 | 9347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4247 | 4247 | | |
4248 | 4248 | | |
4249 | 4249 | | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
4250 | 4254 | | |
4251 | 4255 | | |
4252 | 4256 | | |
| |||
0 commit comments