Re: A reference type Lassi Kortela 19 Aug 2022 10:03 UTC

> Lisp has a standard term for these things of which you speak: locatives.
> Zetalisp, the pre-CL of the Lisp Machine, had low-level locatives
> documented at <https://hanshuebner.github.io/lmman/fd-loc.xml
> <https://hanshuebner.github.io/lmman/fd-loc.xml>>. Locatives were
> removed from CL because they were considered not portable enough, but
> there is a portable package cl-locatives at
> <https://quickref.common-lisp.net/cl-locatives.html
> <https://quickref.common-lisp.net/cl-locatives.html>>.

Common Lisp also has "places" which are used for generalized reference
http://clhs.lisp.se/Body/26_glo_p.htm#place. Scheme's SRFI 17
(Generalized set!) is a copy of this.

However, places (like RnRS locations) are not a first-class type. They
are implied by the existence of suitable getters and setters.

See CLHS 5.1 Generalized Reference (http://clhs.lisp.se/Body/05_a.htm)

And especially 5.1.2 Kinds of Places (http://clhs.lisp.se/Body/05_a.htm)