On 30/09/2011 8:29 AM, Patrick Walton wrote:
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?
Oh also note: you almost certainly want to make the
traling-block-as-last-arg syntax work before doing the conversion. That
is, make:
vec::each(v) {|e| ... }
parse (and re-print as such) rather than having to write:
vec::each(v, {|e| ... });
The latter requires hard-to-hack indentation in the pretty printer and
trailing }); lexical uglies all over the code. Best to give users a way
to avoid these.
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev