lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> Lexical scope was invented because dynamic scope makes programs
>> difficult to understand.
> I guess lexical scope came first (with lambda calculus). Dynamic
> scope was created by a bug in the implementation of lexical scope:

True.  I should have been more precise and wrote that the
*implementation* of lexical scope was invented due to the difficulties
in reasoning about programs in languages that implemented dynamic
scope.

:-)

Jim