Sujet : Re: History of lexical scope in Lisp
De : didier (at) *nospam* didierverna.net (Didier Verna)
Groupes : comp.lang.lispDate : 17. Mar 2024, 11:41:01
Autres entêtes
Organisation : EPITA Research and Development Laboratory
Message-ID : <65f6baad$0$5286$426a74cc@news.free.fr>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13)
Paul Rubin <
no.email@nospam.invalid> wrote:
Does anyone know when lexical scope started appearing in Lisp? Not
counting Scheme, did it exist in predecessors of Common Lisp? Was it
used much? Is it really true that Common Lisp had both lexical and
dynamic scope in order to support older code that was written relying
on dynamic scope and was too hard to convert?
That question should be answered by someone from the standardizing
committee, but anyway I think that there's two questions here.
Dynamic scope is necessary for some things (e.g. mutable global
variables, the condition system, thread-local storage, etc.), and then
there is the general user-level facility for declaring special
variables. So it might very well be that the original motivations for
those are different...
-- Resistance is futile. You will be jazzimilated.Jazz site: http://www.didierverna.comOther sites: http://www.didierverna.info