static binding and dynamic binding
Programming Principle
Example
Copied from https://www.emacswiki.org/emacs/DynamicBindingVsLexicalBinding
(let ((a 1)) ; binding (1)
(let ((f (lambda () (print a))))
(let ((a 2)) ; binding (2)
(funcall f))))
A name that is lexically bound is looked up only in bindings in…