Does D have too many features?

David Nadlinger see at klickverbot.at
Sun Apr 29 08:07:25 PDT 2012


On Sunday, 29 April 2012 at 14:40:38 UTC, Jacob Carlborg wrote:
> foreach ([1, 2, 3, 4], (i)  { writeln(i); });
>
> The above already works today. If we can a bit syntax sugar for 
> delegates and inlinable delegates we could have this:
>
> foreach ([1, 2, 3, 4] ; i) {
>     writeln(i);
> }

We'd still need a solution for continue and break, though.

David


More information about the Digitalmars-d mailing list