Public/private namespaces in harmony classes proposal

Brendan Eich brendan at mozilla.com
Fri Jul 8 09:52:58 PDT 2011


On Jul 8, 2011, at 9:52 AM, Brendan Eich wrote:

> If we do support private prototype properties, then what are the semantics? Private name objects, as recently noted, have their .public counterparts passed as name parameters to proxy traps, so something about private prototype properties may be observable:
> 
> class Victim prototypes Proxy { private protoMethod() { privat(super).protoMethod(); } }

s/prototypes/prototype/ of course.

/be



More information about the es-discuss mailing list