Improving Compiler Error Messages

Walter Bright newshound1 at digitalmars.com
Mon May 3 13:48:42 PDT 2010


Michel Fortin wrote:
> It could even be taken a little further: make the last statement the 
> implicit return value of a function:
> 
>     { a < b } same as { return a < b; }
> 
> Adding back the semicolon would bring back the current behaviour (it's 
> just like adding an empty statement):
> 
>     { a < b; } same as { a < b; return; }
> 
> It'd be nice for functional style predicates.


Yes, these were all proposed for both C++0x and D, and both were rejected for 
the reason Andrei stated.


More information about the Digitalmars-d mailing list