On Thu, Jan 10, 2013 at 11:55 AM, Kevin Smith <[email protected]> wrote:
> > They both have their place since there's many uses for both inherited and >> non-inherited private values. >> > > Can we see some demonstrated use-cases for which WeakMaps are > insufficient, and private properties are? I continue to hear that private > symbols are a great idea without any discussion of the tradeoff: a more > complicated (and more difficult to reason about) runtime object model. > Inheritance is one use case. Assume you want a "virtual" "protected" method. With private symbols you set it on the prototypes. For WM you would have to set up the map for every instance and find a strategy for storing the correct function. -- erik
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

