3 ms·
Semicolon insertion is a bad thing, because it is unintuitive and may lead to subtle bugs. If the rule was straightfoward, like a newline always corresponds to
by olavk 18y ago
Semicolon insertion is a bad thing, because it is unintuitive and may lead to subtle bugs.
If the rule was straightfoward, like a newline always corresponds to an automatic semicolon, then it would be OK. Now the rule require you to have a pretty deep understanding of the language grammar, to determine when a newline changes the semantics.
The intention was good: to optionally allow a more line-oriented syntax like Python, but it turns out that this just dot fit well with c-style syntax.