Class Syntax Proposal, Complete With Arguments For and Examples.
Mark S. Miller
erights at google.com
Sat Sep 17 15:37:55 PDT 2011
Hi Jonathan,
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?
--
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110917/f33e61c7/attachment.html>
More information about the es-discuss
mailing list