>
>
>     constructor(x, y) {
>         if (new^)
>             this = new super(x);
>         else
>             super.constructor(x);
>         this.y = y;
>     }
>
> The point here is that the purpose of the constructor method is not only
> allocation, but also (and primarily) initialisation.
>

Yes - you are right.  And I think we can safely assume that users will
refuse to write such boilerplate.  I'll have to consider things for a bit
before replying to the larger point.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to