4 ms·
> JS is not Lisp where a function means just one thing used Lisp uses dynamic binding for that. (defun do-something () (funcall *something-to-call*))
by lispm 3y ago
> JS is not Lisp where a function means just one thing used
Lisp uses dynamic binding for that.
(defun do-something ()
(funcall *something-to-call*))
(let ((*something-to-call* 'turn-the-light-on))
(do-something))
The behavior depends on the dynamic binding, which provides the context...