Eigenpoll : D wish list : Quick For Syntax
This is my idea for an alternative syntax to for loops. I don't intend for this to replace the old syntax, but simply be there as an alternate syntax.
for i(10)
for(int i = 0; i < 10; ++i)
for i(10, 20)
for(int i = 10; i < 20; ++i)
for i(20, 40, 2)
for(int i = 20; i < 40; i += 2)
Multiple Iterators:
for i, j(10, 20)(20, 40, 2)
for(int i = 10, j = 20; i < 20 && j < 40; ++i, j += 2)
Report this item for cleanup