Private Slots

Brendan Eich brendan at mozilla.com
Tue Jan 15 13:58:19 PST 2013


The GC cost is one problem, but the property access cost is another, and 
the second allocation (wm for every obj) yet another. And as Dean just 
reminded, prototypal inheritance favors symbols. It's not just one cost 
that motivates symbols over weakmaps if the goal is OO privacy.

/be


More information about the es-discuss mailing list