Easier to read lambdas

Jason Orendorff jason.orendorff at gmail.com
Tue May 29 09:22:34 PDT 2007

On 5/29/07, Igor Bukanov <igor at mir2.org> wrote:
> In fact such notation competes with using generators for enumeratons. Compare:

Competing notations are not necessarily a good thing.

> So how does it look for you?

It looks superficially like Ruby blocks.  But Ruby's syntax is
more nicely sugared, and more importantly, Ruby's other
language features are designed to work smoothly with blocks.
"break" and "return" do the right thing inside Ruby blocks.
Ruby has a different flavor of "yield" that complements blocks.
And so on.  None of this support is there in ES4.


More information about the Es4-discuss mailing list