Strict mode eval

Andreas Rossberg rossberg at google.com
Thu May 12 11:40:29 PDT 2011


On 12 May 2011 17:47, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
>
> On May 12, 2011, at 2:10 AM, Andreas Rossberg wrote:
>>
>> The one bit where these questions are somewhat related is the
>> "(mostly)" bit in your reply. Is there a reason for this "mostly",
>> which, I would argue, is a form of dynamic scoping?
>
> [...]
> This is necessary, because the global binding for "eval" might be changed

Ouch, right.

> or because there might be a  binding of "eval" in an surrounding scope.

I see -- which, specifically, might have been introduced after the
fact via `with' or non-strict eval.

I guess I still have a blind spot on the various ways of messing up
static scoping. But I'm working on it. :)  Anyway, thanks for pointing
it out.

/Andreas


More information about the es-discuss mailing list