2008/11/29 Brendan Eich <[EMAIL PROTECTED]>:
> // Instead of lambda (a, b, c) { ... }, why not:
> { |a, b, c| ... } ?
In know this syntax primarily from Ruby's blocks.
This would allow writing
var foo = {|a, b, c| ...};
which could be written even shorter as
var foo(a, b, c) {...};
The later is more consistent with the following which would also be
necessary at times.
lambda(a, b, c) {...}
I'd prefer the last two options.
> Anyway, we need a fun weekend thread, and everyone loves syntax. Comments?
The following please!
(lambda (a b c) ...)
;-)
Peter
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss