On 06/16/2012 07:30 AM, Niko Matsakis wrote:
Jumping back to an old thread:
Yes, except that continue/break/ret would be valid in the latter but
not the former.
It seems like we should allow continue or break but not both. And it
seems mildly inconsistent to allow breaks in a `do` but not other
blocks. Perhaps we should just allow `break` in any block?
I assume you mean labeled break, right? Otherwise this won't do what you
expect:
for array.each |x| {
if (x == 1) {
break;
}
}
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev