Syntactic sugar for using a function as if it were a method of its first argument

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue May 27 15:52:34 PDT 2014


I did indeed !!! Interesting, thanks for the clarification.


On Tue, May 27, 2014 at 3:44 PM, Claude Pache <claude.pache at gmail.com>wrote:

>
> Le 27 mai 2014 à 20:59, Andrea Giammarchi <andrea.giammarchi at gmail.com> a
> écrit :
>
> > Sorry Nathan but how is this different from extending Object prototype?
> you are basically polluting everywhere `::` operator, can't see any less
> conflictual scenario than just "polluting the `.` one" in terms of prototype
>
> There is no need to pollute anything. I guess you missed that the RHS of
> the `::` operator could be lexically scoped?
>
> —Claude
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140527/acb6175c/attachment.html>


More information about the es-discuss mailing list