Comment #0 by bearophile_hugs — 2010-06-23T04:42:34Z
This code compiles with v2.047, but the do-while misses the ending semicolon:
void main() {
do {
} while (false)
}
Turning this kind of code into a syntax error makes this syntax more consistent with the other parts of D syntax and can reduce programmer's confusion (because the semicolon clearly denotes the end of something instead of a possible start of a new while loop).
I prefer a language that doesn't need ending semicolons, but in D2 requiring a semicolon there is better.