[llvm-commits] [PATCH 01/13] Add For Loop Structures

David A. Greene dag at cray.com
Fri Feb 3 11:10:12 PST 2012


Jakob Stoklund Olesen <stoklund at 2pi.dk> writes:

>> Ping?
>
> I'll get to this.

Ok, thanks.

> Are you planning more changes?

The other change I'm considering is related to foreach but also useful
in its own right.  I'd like to introduce a zip operator so we can do
things like this:

foreach {int a, int b} = !zip([1, 3, 5, 7], [2, 4, 6, 8]) {
  ...
}

Otherwide there is no easy way to iterate over multiple lists "in
tandem."  I think this was identified as a desirable feature.

The above isn't implemented yet.

                       -Dave



More information about the llvm-commits mailing list