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

Igor Bukanov igor at mir2.org
Fri Mar 16 05:01:32 PDT 2007


On 16/03/07, Brendan Eich <brendan at mozilla.org> wrote:
> Yes, you are right -- ES3 allows Unicode identifiers, so this would
> not be a backward compatible change. It seems excessive anyway, if \
> (x)x is acceptable for (lambda (x) x).

And if farther
  \(args) expression
would stand for
  function(args) { return expression; }

then JS would be close to beating ML and friends in shortness of
defining lambdas.

Regards, Igor



More information about the Es4-discuss mailing list