Improving Compiler Error Messages

Walter Bright newshound1 at digitalmars.com
Mon May 3 13:46:33 PDT 2010


Michel Fortin wrote:
> 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 arguments.
> 
> foo((int i) { writeln(i) });


This has been proposed before, and it looks nice, but it's problematic.

It was also proposed and rejected for C++0x lambdas.


More information about the Digitalmars-d mailing list