Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: What is green and lives in the ocean? A: Moby Pickle.


comp / comp.lang.lisp / Re: History of lexical scope in Lisp

SubjectAuthor
* Re: History of lexical scope in LispDidier Verna
`- Re: History of lexical scope in LispLawrence D'Oliveiro

1
Subject: Re: History of lexical scope in Lisp
From: Didier Verna
Newsgroups: comp.lang.lisp
Organization: EPITA Research and Development Laboratory
Date: Sun, 17 Mar 2024 09:41 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp2-2.free.fr!not-for-mail
From: didier@didierverna.net (Didier Verna)
Newsgroups: comp.lang.lisp
Subject: Re: History of lexical scope in Lisp
Organization: EPITA Research and Development Laboratory
Distribution: world
References: <874jd7z5nf.fsf@nightsong.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVZeUBeISYbIRa+uXTR
0c2xa1rmi5tKAAACT0lEQVQ4jVWUwZLjIAxEZTPcLVK+A1u5OwvctwrnDkv4/1+ZFraTGeJyKnpu
yWpByGPZWe7+nmLO4VwkkT9/B7jhN8A+1gFE4XohUvGX4jY7v3TSExsd46kICZHmnA6998m4dimY
jdfa+iaP5WTsHj811mKXI8GeLskA1LavE+yPm9xPoOZwxffMPxR6e13xEB8qf8AzXvEQn+sPhX4L
0PvUPg2qd4UUQlVvoK4SOfwGdIEkWert3aB+fUqEUJahMAu5C6TKawsVrmQoVJopInvcn9XAnlCH
K8Skpi2GYlYRMAP4V94zmXugLcZceE/9AE6Nt/rKNL32wG7f2HvmBoDRk7dhK68nUdsfxlUB/i4K
54lguuyBrbYEsPFt2G6JCqaBCVaOmC/g2hIAbQSrwmijhYbJrzISIlynh09uOfXWuaZEhEx0uo5n
Q197r0h3AFGgp17XhEz4Wjca60gl7bUqoK/qIEcqMQTZOhfNeCP0R3TUNjBkCBoVBBWdICSRVJQY
eRCfKJ5bakgmTSoImtlKe3gpAQW94+kZ8QlDxJR0lFRcum4EP4ZkwW7ImKJIqGjE/YQGncVQsPlz
L5KLOnvyBhC9eyXgGO1SHFk7I5vFR2MvgBwSKh7FJztsFADfveN1IuNpIbkUJT2AkePFy2zJEE4y
3lk9QPIkpxpG4R/B0uzASP1zukvcs+bF2P/I76CZ1G78sXj1y6yQZEMhW9T+OOKOu+dCM4jDWcao
8iGBvygjZtAi88WRSIeA1+oWKwrYzsvXnnOV5wGScYr8NyBru1vr/U3zAAAAAElFTkSuQmCC
X-Attribution: dvl
X-Web: http://www.didierverna.com
X-Url: http://www.didierverna.com
X-Home-Page: http://www.didierverna.com
Date: Sun, 17 Mar 2024 10:41:01 +0100
Cancel-Lock: sha1:uI9A1bs65fytamd2HaaBlgh1O20=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 22
Message-ID: <65f6baad$0$5286$426a74cc@news.free.fr>
NNTP-Posting-Date: 17 Mar 2024 10:41:01 CET
NNTP-Posting-Host: 78.243.179.1
X-Trace: 1710668461 news-2.free.fr 5286 78.243.179.1:59537
X-Complaints-To: abuse@proxad.net
View all headers

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.com
Other sites: http://www.didierverna.info

Subject: Re: History of lexical scope in Lisp
From: Lawrence D'Oliv
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 17 Mar 2024 21:12 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.lisp
Subject: Re: History of lexical scope in Lisp
Date: Sun, 17 Mar 2024 21:12:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <ut7mb5$3o0fg$3@dont-email.me>
References: <874jd7z5nf.fsf@nightsong.com>
<65f6baad$0$5286$426a74cc@news.free.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Mar 2024 21:12:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b5c3033c9cb89f318b807c840903d225";
logging-data="3932656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Tw8AA27wbp3U8VwNTYvj7"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:tNlWb4K4WFdrvztIbByDhlOcONQ=
View all headers

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.

1

rocksolid light 0.9.8
clearnet tor