emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If records are not sequences, why does aref work on records?


From: Lars Brinkhoff
Subject: Re: If records are not sequences, why does aref work on records?
Date: Sat, 08 Apr 2017 17:24:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Clément Pit-Claudel wrote:
> It doesn't need to: since vectors and lists are used, it's natural to
> use vector and list functions on these objects.  It goes further: the
> cl-struct predicates are explicitly *documented* to work fine on
> vectors:
>
>      Given any Lisp object X, ‘(person-p X)’ returns true if X looks
>      like a ‘person’, and false otherwise.  (Again, in Common Lisp this
>      predicate would be exact; in Emacs Lisp the best it can do is
>      verify that X is a vector of the correct length that starts with
>      the correct tag symbol.)

Not any more.  When I made my change, I found this part of the manual
and deleted the text in parentheses.  And also changed much of the other
places you quoted.

This is not to say that I weigh in on any side of this debate.  I think
both sides make good arguments.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]