Some questions about Private Name Objects

David Bruant bruant.d at gmail.com
Mon Aug 27 12:36:45 PDT 2012


Le 27/08/2012 21:22, Kevin Smith a écrit :
>
>     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
A huge share of this complexity has been removed in recent discussions
[1]. Conclusions seem to have reach consensus on es-discuss, but nothing
has been officially accepted by TC39

> and mixin composition.
What do you mean? Private name allow to do mixins without collision. It
seems to reduce the complexity than increasing it in my opinion.

David

[1] See discussion starting at
https://mail.mozilla.org/pipermail/es-discuss/2012-July/024212.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120827/5e826b5c/attachment.html>


More information about the es-discuss mailing list