Have the scope accessible as an object and implement a new with operator / block

Erik Corry erik.corry at gmail.com
Tue Dec 20 02:19:33 PST 2011

2011/12/20 Xavier MONTILLET <xavierm02.net at gmail.com>:
> Hi,
> There is this one thing in JavaScript I really hate: You can't so
> {{$varName}} as in PHP so as soon as you need dynamic names, you have
> to put everything in an object...
> I don't know how scopes are implemented

Not being able to get hold of the scope as an object enables important
optimizations and is a feature, not a bug.

Erik Corry

More information about the es-discuss mailing list