Sujet : Re: History of lexical scope in Lisp
De : robert.brown (at) *nospam* gmail.com (Robert Brown)
Groupes : comp.lang.lispDate : 16. Mar 2024, 02:23:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <871q8bja7c.fsf@gmail.com>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13)
Paul Rubin <
no.email@nospam.invalid> writes:
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?
No. I'd say Common Lisp has both lexical and dynamic scope because both
are very useful. For instance, the Guice dependency injection framework
for Java implements @RequestScoped settings, which are dynamically
scoped and thread local. Guice wouldn't need that feature if Java
natively supported dynamically-scoped variables.