Harmony:classes static and private

Brendan Eich brendan at mozilla.com
Wed Jun 8 15:40:12 PDT 2011


On Jun 8, 2011, at 11:13 AM, Bob Nystrom wrote:

> Either I'm out-of-date or the wiki page is. My understanding is that at the TC39 meetings we decided to move instance and private record declarations out of the class body and into the constructor. If that's the case, this should be less confusing. You can no longer use "public" or "private" at the class body level. So that example becomes:

Yes, the proposal puts instance property/variable declarations in the constructor body.

No, it does not outlaw private and even public for class body elements that define (without static or whatever we use instead of static) prototype properties.

/be



More information about the es-discuss mailing list