I was reading the documentation at control-syntax-new.html.
Assuming that this is the latest, I note:
The condition of an if-expression can be written without enclosing parentheses if it is followed by a then or some indented code on a following line.
The condition of a while-loop can be written without enclosing parentheses if it is followed by a do.
This is not a big issue, but I was wondering why
do cannot also be omitted (like
then) if it is followed by some indented code. Would it make the language more regular if
do were treated in the same way?