On 30/09/2011 8:29 AM, Patrick Walton wrote:

Given that we clearly need more discussion here before we reach
consensus, I'd like to propose doing the above for 0.1, and removing
iters as they currently stand. I already added vec::eachi and it's
pretty nice to use -- the added sugar in |for each| doesn't seem to buy
us much.

I whipped up a small testcase using clang and it seems that LLVM indeed
can optimize this style of iteration into a loop.

Is everyone ok with this?

Yup. Adios iter/put/each keywords.
(I suppose saying so is redundant)

Figure you'll change 'for' to C-style 3-clause init/test/step in the meantime? Or just remove 'for' as a keyword and leave it reserved? I don't mind either way.

-Graydon

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to