On 5/3/10 21:33, Michel Fortin wrote:
On 2010-05-03 05:53:34 -0400, Jacob Carlborg <d...@me.com> 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 arguments.

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

I think I've forgot the semicolon in every one line delegate literal I've ever written in D.

Reply via email to