On Thu, Sep 29, 2011 at 18:38, Waldemar Horwat <walde...@google.com> wrote:
> Yes, it's easier, but you'd also lose any convenient way of doing 5.  2, 4,
> and 5 are the most important new features, and there isn't enough value in
> classes to add them without those.  If you find it difficult to come up with
> a proposal that can accommodate them, it's a sign that you're about to
> design yourself into a corner.

>>    1. Don't let uninitialized objects escape
>>    2. Ensure the shape of the instance
>>    3. Initialization of instance properties

We have these today and it is not a big problem. Python and Ruby also
gets by here.

>>    4. Allow const classes

Object.freeze/seal

>>    5. Allow const properties

Object.defineProperty works for me.

>>    6. Play well with future type guards


-- 
erik
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to