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

Xavier MONTILLET xavierm02.net at gmail.com
Tue Dec 20 02:24:40 PST 2011

What kind of optimizations? The variable have to be in some kind of
structure and it should be possible to read it as an object the same
way you read it as variables...

The fact that the "inheritance" between scopes I spoke of would be
hard to implement because they keep a one level deep structure and
change it when they change scope would be understandable. But no being
able to read the structure seems strange to me.

On Tue, Dec 20, 2011 at 11:19 AM, Erik Corry <erik.corry at gmail.com> wrote:
> 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