The whole concept is great.

What class does for the JS community is give everyone a standardized way to
write "classes". The simplest way to have a class is to call
ObjectLiteral.constructor and that's exactly what this class syntax does.

This also means that it's very easy to adapt to using this.

This class proposal is also orthogonal to object exemplars.

Apart from setting `obj.constructor.prototype = obj` in the background when
you declare an object literal and making function <| object work, we don't
actually need to augment new and instanceof to work with objects.

On Mon, Nov 14, 2011 at 8:16 PM, Allen Wirfs-Brock <[email protected]>wrote:

> (I'm going to write this up as a strawman, this list gets first shot at
> it...)
>
>
> Introduction
>

[snip]
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to