@@new

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Jun 18 16:49:58 PDT 2014


For background, here is the original proposal presentation about using @@create to enable subclassing of built-ins.
   http://wiki.ecmascript.org/lib/exe/fetch.php?id=meetings%3Ameeting_jan_29_2013&cache=cache&media=meetings:subclassing_builtins.pdf 

In particular see material that starts at slide 19. In this proposal, the initialized/uninitialized state isn't really about ensuring that an object has be correctly initialized. It's more about distinguishing calls to the the constructor as a factory(possibly a name-spaced factory or a factory installed as a method of another object) from calls (or super calls) to the constructor to initialize an instance. 

Allen



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140618/53d4824d/attachment.html>


More information about the es-discuss mailing list