new instantiation design alternatives

Jeremy Martin jmar777 at gmail.com
Fri Sep 12 07:35:29 PDT 2014


Sorry to interject, but was the rationale for needing a new syntax for this
(vs. an API-based solution) presented anywhere? I can't seem to find it.

On Fri, Sep 12, 2014 at 10:23 AM, Claude Pache <claude.pache at gmail.com>
wrote:

>
> Le 12 sept. 2014 à 15:19, Kevin Smith <zenparsing at gmail.com> a écrit :
>
> > Thanks for this!
> >
> > A question:  why is it important to provide this new functionality
> ("new^", "this = whatever") to basic constructors?  Why not use class
> syntax as an opt-in to these features?
>
> ES classes are only syntax; the objects defined by that syntax are just
> regular functions. Basically, these functions could have been defined the
> traditional way and have their properties related to prototypal inheritance
> manually adjusted afterwards. It would be artificial to limit a feature
> based on *how* the objects were constructed.
>
> —Claude
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
Jeremy Martin
661.312.3853
http://devsmash.com
@jmar777
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140912/71143a38/attachment.html>


More information about the es-discuss mailing list