Sugar for *.prototype and for calling methods as functions
Axel Rauschmayer
axel at rauschma.de
Tue Feb 21 06:41:22 PST 2012
> There is a proposal for making available existing functions via modules in ES6:
>
> http://wiki.ecmascript.org/doku.php?id=harmony:modules_standard
>
> If there are methods missing from this list that can reasonably be
> used as stand-alone functions, then I'm sure nobody will object to
> adding them.
Beautiful, no more constructors-as-poor-man’s-namespaces.
All generic methods could be in such modules, with uncurried `this`. But, with generic methods I’m undecided, they also make sense as “static” methods:
http://wiki.ecmascript.org/doku.php?id=strawman:array_statics
--
Dr. Axel Rauschmayer
axel at rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120221/806e2920/attachment-0001.html>
More information about the es-discuss
mailing list