github at esdiscuss.org (2013-07-12T02:24:50.338Z)
Yes, any valid function identifier could be used, because it's not actually
a keyword.
_ (arg) { ... }
f (arg) { ... }
$ (arg) { ... }
? (arg) { ... }
Yes, any valid function identifier could be used, because it's not actually
a keyword.
_ (arg) { ... }
f (arg) { ... }
$ (arg) { ... }
? (arg) { ... }
On Tue, Mar 6, 2012 at 10:07, Thaddee Tyl <thaddee.tyl at gmail.com> wrote: > An interesting property of this syntax is that anonymous functions can > be written this way: > > myList.forEach(λ (item) { doWith(item) }) > > (it can also be `lambda (item) { ... }`) > Yes, any valid function identifier could be used, because it's not actually a keyword. _ (arg) { ... } f (arg) { ... } $ (arg) { ... } ƒ (arg) { ... } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120306/7186b4be/attachment.html>