Class Syntax Proposal, Complete With Arguments For and Examples.
Mark S. Miller
erights at google.com
Sat Sep 17 15:37:55 PDT 2011
Your class recapitulates a mistake the committee almost made as well. Your
private and public member are in the same namespace. Private members should
not affect the behavior of the public API. However, if a class makes an
extensible instance, and a client of the instance tries to add an "_x"
expando property to that instance, where that happens to conflict with one
of that abstraction's private names, what should happen?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss