Hi,
On 27/07/2013 17:48, Zoltán Tóth wrote:
What about changing the order?
Not a fan. However at that point you can also use "=>":
loop [1, 2, 3] => i { ... }
Generally though huge +1 on "for <ident> in <expr>" just because it's
very familiar to people. "in" is a common keyword and can also be
utilized for other things.
If no other use can be found then you can make "<expr> in <expr>" a
binop that compiles to <expr>.contains(<expr>) similar to how it works
in Python.
Regards,
Armin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev