time to trim mustache

Kevin Smith khs4473 at gmail.com
Mon Jun 4 06:41:31 PDT 2012


Thanks Dave,

Of the 3 use cases you mentioned, I think unique names are probably
sufficient for 1 and 3.  For the second use case (an inaccessible piece of
data associated with an object), would not a weak map also be appropriate?

So far I don't see that the benefit of private names (as opposed to just
unique names) outweighs the additional object model complexity.  As far as
I can tell, all of the use cases for private names can be addressed with
unique names and weak maps.  Am I wrong?

Regards,

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120604/0f8cf9f4/attachment-0001.html>


More information about the es-discuss mailing list