Protected properties using Name objects

Tom Van Cutsem tomvc.be at gmail.com
Mon Jun 18 10:45:20 PDT 2012


I agree with David: is this use case sufficiently common/needed to require
such deep extensions to Javascript's object model? Especially the interplay
between writable & configurable is already complex. Adding more knobs
should not be done lightly.

Accessors seem like a fine abstraction for "protected" attributes. I can't
imagine their overhead to be prohibitive?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120618/8e17fbb9/attachment.html>


More information about the es-discuss mailing list