We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a2192 commit 615d4beCopy full SHA for 615d4be
spec/statement.dd
@@ -285,8 +285,9 @@ $(H3 $(LNAME2 boolean-conditions, Boolean Conversion))
285
)
286
$(P If none of these are valid, it is an error to use the value in a condition.)
287
288
- $(NOTE A dynamic array can be used in a condition, which is `true` when non-null.
289
- However, using this should be avoided as it can be bug-prone.
+ $(NOTE A dynamic array `a` can be used in a condition, which is `true` when
+ `a !is []`.
290
+ However, using an array as a boolean condition should be avoided as it can be bug-prone.
291
This may be disallowed in a future edition.)
292
293
$(H3 $(LNAME2 condition-variables, Condition Variables))
0 commit comments