time to trim mustache
khs4473 at gmail.com
Mon Jun 4 06:41:31 PDT 2012
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss