On 2010-05-03 16:07:34 -0400, Andrei Alexandrescu
<[email protected]> said:
foo((int i) { writeln(i) });
Yea, that's a case of optional-semicolon that even I'd like to have
(And I've suggested it before).
Actually that doesn't work as well as one might expect. In the Cecil
language, the return type of a function would depend on whether it
ended with a semicolon (void if present, something else if absent). Not
very robust.
That's an argument against returning the value of the last statement.
It's not an argument about making the last semicolon optional, is it?
--
Michel Fortin
[email protected]
http://michelf.com/