Rick Waldron (2011-10-21T17:23:41.000Z)
On Fri, Oct 21, 2011 at 12:36 PM, Axel Rauschmayer <axel at rauschma.de> wrote:

> In a vein similar to making [] available to collections, one could make
> "new" and "instanceof" available to other inheritance schemes.
>
> For example:
>
> // “Meta-class” for prototypes as classes/instantiable prototypes
> function ProtoExemplars() {}
> ProtoExamplar.prototype.{
>

Has an official strawman been submitted for the "extend" operator? Having
trouble searching for it, but might be using the wrong terminology.
(Editorial: I love this operator)


>    operatorNew(...args) {
>        let inst = Object.create(this);
>        return inst.constructor(...args);
>    },
>    operatorInstanceof(lhs) {
>        return this.isPrototypeOf(lhs);
>    }
> };
>
> --
> Dr. Axel Rauschmayer
> axel at rauschma.de
>
> home: rauschma.de
> twitter: twitter.com/rauschma
> blog: 2ality.com
>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111021/d0a5e61d/attachment.html>
github at esdiscuss.org (2013-07-12T02:24:05.025Z)
Has an official strawman been submitted for the "extend" operator? Having trouble searching for it, but might be using the wrong terminology.

(Editorial: I love this operator)