[r6rs-discuss] set-car!

From: John Cowan <cowan>
Date: Fri, 22 Jun 2007 13:48:54 -0400

Alan Watson scripsit:

> R6RS banishes set-car! and set-cdr! to the wilderness.

Pairs are the most common data structure in most programs. If it is
known (by examining the transitive closure of all imports in a program)
that set-car! and set-cdr! are not imported, then the implementation
can use an alternative run-time in which pairs are immutable.
That allows a variety of interesting implementation strategies.

-- 
John Cowan   cowan at ccil.org    http://ccil.org/~cowan
[R]eversing the apostolic precept to be all things to all men, I usually [before
Darwin] defended the tenability of the received doctrines, when I had to do
with the [evolution]ists; and stood up for the possibility of [evolution] among
the orthodox -- thereby, no doubt, increasing an already current, but quite
undeserved, reputation for needless combativeness.  --T. H. Huxley
Received on Fri Jun 22 2007 - 13:48:54 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC