Allen's lambda syntax proposal

YR Chen maian330 at gmail.com
Wed Dec 3 10:56:03 PST 2008


2008/12/3 P T Withington <ptw at pobox.com>

> If we are voting on the color of paint to use, I sure like:
>   ^(a, b, ...) { ... }
>
> + ^ is mnemonic for Λ (Greek capital lambda)
> + ^ is mnemonic for 'pointer' so I am reminded that I am creating and
> object here
> + () keeps parameters in a parameter list so I don't have to learn a new
> syntax (as I might with any other delimiter)
>
> - prefix ^ might be confused with the infix operator of the same name
>

Though use of the infix ^ is so rare that I bet many JS users don't even
know about it. The first article found when googling "javascript operators"
(w3schools.com) doesn't even mention it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20081203/271fd910/attachment.html>


More information about the Es-discuss mailing list