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
On 6/6/12 10:23 AM, Graydon Hoare wrote:
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!)
Sure, either one works for me. I don't
On Tue, Jun 5, 2012 at 6:20 PM, Patrick Walton pwal...@mozilla.com wrote:
Hi everyone,
Here's a revised lambda syntax tweak proposal. It's gotten feedback from
several, so I think it's time to present it more generally.
Just a quick question: Can I pass in a multi-statement lambda to a
On 6/6/12 10:52 AM, Sebastian Sylvan wrote:
Just a quick question: Can I pass in a multi-statement lambda to a
function without using do or for, and if so what does it look
like?
I'm guessing something like this, but I didn't see it spelled out:
foo( |x| {
let y = x+1;
y+1
});
Yep,