On 05/06/2012 6:20 PM, Patrick Walton wrote:
Thoughts?
Very nice. Though I do like the current {|x| ...} in the sense that it has an explicit scope-end for the binder, and I'll be sad to lose that, but the rest is clever. Grammar simplifications are good. And I guess the scope-end issue is in inherent tension with the desire to have short lambdas in argument lists.
I'd also possibly prefer "break" rather than "continue" to get an early-exit from a 'do'. But then, we're still debating what to do for the word "continue" in the grammar anyway (#2229, I still prefer "loop;" there!)
(Does slightly make me think again to the no-scope-end fat-arrow lambdas that were proposed last time we discussed this -- "(x) => expr" -- but I'm not sure if the symmetry with pattern fat-arrow syntax is worth the chattiness cost nor the need for the parser to suspend judgment on tuple-of-ident expressions while parsing. Thoughts?)
-Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
