[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overriding car/cdr
From: |
Marius Vollmer |
Subject: |
Re: overriding car/cdr |
Date: |
Sun, 08 Feb 2004 19:09:10 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
address@hidden (Paul Jarc) writes:
> Marius Vollmer <address@hidden> wrote:
>> Hmm, my immediate reaction is that car/cdr are too low-level for
>> making them overrideable, but map and for-each and other operations
>> that work on whole sequences look like good targets...
>
> Going that route, there will always be one more function that someone
> wants to be converted.
But car/cdr are not a good way to work with general sequences. Think
of vectors. We should not try hard to turn car/cdr into something
abstract (which they are not, even their names come from the lowest
level). Somehthing like the 'sequence' concept of Common Lisp is a
better approach, I'd say.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405