You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An `if` expression is a conditional branch in program control.
14
24
The syntax of an `if` expression is a condition operand, followed by a consequent block, any number of `else if` conditions and blocks, and an optional trailing `else` block.
@@ -126,7 +136,6 @@ if let E::X(n) | E::Y(n) = v {
126
136
```
127
137
128
138
The expression cannot be a [lazy boolean operator expression][_LazyBooleanOperatorExpression_].
129
-
Use of a lazy boolean operator is ambiguous with a planned feature change of the language (the implementation of if-let chains - see [eRFC 2947][_eRFCIfLetChain_]).
130
139
When lazy boolean operator expression is desired, this can be achieved by using parenthesis as below:
131
140
132
141
<!-- ignore: psuedo code -->
@@ -149,7 +158,6 @@ if let PAT = ( EXPR || EXPR ) { .. }
0 commit comments