Andreas Rossberg (2013-08-27T09:53:14.000Z)
domenic at domenicdenicola.com (2013-08-29T23:32:46.943Z)
I would not worry about the cost -- if you want remotely decent performance, you wouldn't use with-scopes anyway (e.g. in V8, they do not get optimized at all, and every variable lookup already is a runtime call). Also, it's not hard to fast-case the normal case for objects that have no @@unscopable. Conceptual consistency and the principle of least surprise is more important. The potential performance cost is the honest price to pay for having a complicated object model. I don't like trying to cheat our way around that.