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

Claude Pache claude.pache at gmail.com
Tue May 27 15:44:52 PDT 2014


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



More information about the es-discuss mailing list