4 ms·
Emacs lisp has dynamic scoping which allows functions to modify the variables in a caller's scope, which is horrific.
by btipling 14y ago
Emacs lisp has dynamic scoping which allows functions to modify the variables in a caller's scope, which is horrific.
- lispm 14y agoEmacs Lisp has now lexical scope. Recent Changes: * Lisp Changes in Emacs 24.1 Code can now use lexical scoping by default instead of dynamic scoping. The `lexical-binding' variable enables lexical scoping for local variables. It is typically set via a file-local variable in the first line of the file, in which case it applies to all the code in that file.