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

Igor Bukanov igor at mir2.org
Fri Mar 16 05:06:26 PDT 2007


On 16/03/07, P T Withington <ptw at pobox.com> wrote:
> On 2007-03-16, at 04:58 EDT, Brendan Eich wrote:
>
> > Seriously, we are not going to inject any alien syntax. Vassily
> > proposed a shorthand in expression closures: \ for function. Let's
> > try to get back to that.
>
> I don't see the value, except for the 'obfuscated Javascript
> contest'.  If you make that many closures in a day, why not bind c-\
> to insert `function` in your editor?  I would rather programs were
> easy to read than easy to write, since I spend a lot more time doing
> the former.

For me function(args) { .... } is just too verbose and makes code
harder to read especially in the case of many short lambdas.

Regards, Igor



More information about the Es4-discuss mailing list