ephemient
04/27/2022, 6:32 AMifExpression
be changed from
'if' '(' expression ')' (controlStructureBody | (controlStructureBody? ';'? 'else' (controlStructureBody | ';')) | ';')
to
'if' '(' expression ')' (controlStructureBody | (controlStructureBody? ';'? 'else' (ifExpression | controlStructureBody | ';')) | ';')
or some other equivalent change, to make
if (…) { … } else if (…) { … } else { … } ?: …
parse like
(if (…) { … } else if (…) { … } else { … }) ?: …
rather than the current unintuitive
if (…) { … } else (if (…) { … } else { … } ?: …)
?dmitriy.novozhilov
04/27/2022, 6:43 AMwhen
in such cases
So no, it can notephemient
04/27/2022, 6:48 AMwhen
works better (as I recommended in the linked thread), but any existing code relying on this is likely confusedephemient
04/27/2022, 6:57 AM