Sujet : Re: History of lexical scope in Lisp
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.lispDate : 17. Mar 2024, 23:12:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ut7mb5$3o0fg$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Sun, 17 Mar 2024 10:41:01 +0100, Didier Verna wrote:
Dynamic scope is necessary for some things (e.g. mutable global
variables, the condition system, thread-local storage, etc.) ...
Can’t see the reasoning behind any of those three examples. Thread-local
storage is the same as global variables, and global scope is just the
outermost lexical scope. As for the condition system, see my example
showing how a lexically-scoped language like Python can handle that.