Does D have too many features?

Jacob Carlborg doob at me.com
Sun Apr 29 09:10:39 PDT 2012


On 2012-04-29 17:07, David Nadlinger wrote:
> 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

This has already been solved when using opApply, although quite an ugly 
solution.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list