Security Demands Simplicity (was: Private Slots)

Kevin Smith khs4473 at gmail.com
Thu Jan 17 18:40:26 PST 2013


It seems as if this approach to private class members also allows us to
describe private methods in a convenient way.  Private methods can be
attached to the _prototype_ of the private field object, thus avoiding
per-instance allocation.  Of course, the correct "this" value has to be
used in the expansion when calling the private method, but this approach
appears to be compatible with mixins (whereas private symbols are not).

https://gist.github.com/4561871

Thoughts?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130117/e0dd974f/attachment.html>


More information about the es-discuss mailing list