Harmony:classes static and private

Bob Nystrom rnystrom at google.com
Wed Jun 8 16:04:21 PDT 2011


On Wed, Jun 8, 2011 at 3:40 PM, Brendan Eich <brendan at mozilla.com> wrote:

> 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.
>

What do they accomplish? I'm guessing private places the property on the
private record of the prototype. What does public do?

- bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110608/ecf6dbd5/attachment.html>


More information about the es-discuss mailing list