On 30/09/2011 10:00 AM, Marijn Haverbeke wrote:
I'm also fine with this. As for the syntax...vec::each(v) {|e| ... }This once again produces ambiguity with fail and ret: does 'fail {|e| ...}' mean 'call the function produced by fail with this block', or 'fail with this block as the message'. Can be hacked around, or we can just specify that the second version holds, but it's a wart.
Hm? I thought we were assuming {|e| ... } only adheres to a call expression to its left, is considered "the last argument" to the call.
ret and fail are not call exprs. -Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
