Improving Compiler Error Messages

Michel Fortin michel.fortin at
Mon May 3 12:33:53 PDT 2010

On 2010-05-03 05:53:34 -0400, Jacob Carlborg <doob at> said:

> foo((int i) { writeln(i); });

I agree that the semicolon looks out of place for one-line function bodies.

The semicolon could be made optional for the last statement in a block. 
Just have it be a statement separator instead of a terminator. That'd 
be consistent with commas in enums, array literals, and function 

foo((int i) { writeln(i) });

Michel Fortin
michel.fortin at

More information about the Digitalmars-d mailing list