[r6rs-discuss] set-car!

From: Onnie Winebarger <owinebar>
Date: Fri, 22 Jun 2007 14:06:39 -0400

On 6/22/07, John Cowan <cowan at ccil.org> wrote:
>
> 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.


    Is this the only way to achieve that goal, or just a convenient one?
    It is an unfortunate decision, in any case. The Scheme that makes
impurity second-class is not the true Scheme.

Lynn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.r6rs.org/pipermail/r6rs-discuss/attachments/20070622/b426e778/attachment.htm
Received on Fri Jun 22 2007 - 14:06:39 UTC

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