Expression closures - use-cases for shortcut lambda syntax (blocks)

Igor Bukanov igor at
Sat Mar 17 05:17:32 PDT 2007

On 17/03/07, Dave Herman <dherman at> wrote:
>    2) treat such a block <b> as syntactic sugar for function()<b>
> I'm sort of sympathetic to your idea as analogous to Smalltalk and Ruby
> blocks.

Note that Ruby's do-block is not a function but just a body of a loop
and a roughly corresponds to for-in loop in JS executed over a

Regards, Igor

More information about the Es4-discuss mailing list