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

Reply via email to