Some questions about Private Name Objects

Kevin Smith khs4473 at gmail.com
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.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120827/b59e41cf/attachment.html>


More information about the es-discuss mailing list