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
The current reference syntax of IfExpression is not clear enough:
I had to read more on explanation that:
The form of an if expression is a condition expression, followed by a consequent block, any number of else if conditions and blocks, and an optional trailing else block
So I think introduce a condition expression in syntax might make sense.
Prior art in other languages:
The current reference syntax of IfExpression is not clear enough:

I had to read more on explanation that:
So I think introduce a condition expression in syntax might make sense.
Prior art in other languages:
if
syntax has condition expression: https://en.cppreference.com/w/cpp/language/ifThe text was updated successfully, but these errors were encountered: