Private symbols vs property attributes
Brendan Eich
brendan at mozilla.com
Sat Feb 9 23:07:43 PST 2013
Allen Wirfs-Brock wrote:
> Note that the enumerable attribute really only affects for-in enumeration (and Object.keys), neither of which enumerates symbols anyway. That, means that the enumerable attribute really has has no current meaning for symbol keyed properties. That means we could probably reinterpret the enumerable attribute as a "private" attribute for such symbol keyed properties.
Groovy.
But the private-as-attribute idea still seems to require an access
control check, which makes it less secure from an OCap perspective and
experience, compared to symbols as capabilities.
Wishing for Mark to weigh in here!
/be
More information about the es-discuss
mailing list