Some questions about Private Name Objects

Kevin Smith khs4473 at
Mon Aug 27 12:22:54 PDT 2012

> A last alternative is to associate private data via a WeakMap (it can be
> shimmed in ES5 with the same garbage collection properties and with good
> performances) that inherited functions all have access to. It works, but
> it's burdensome and doesn't read as well as object properties.

On the other hand, private names seem to add complexity to proxies and
mixin composition.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list