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: Paul Eggert
Subject: Re: If records are not sequences, why does aref work on records?
Date: Sat, 8 Apr 2017 00:42:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Noam Postavsky wrote:
having copy-record would still be a good idea, as it helps
show the intent better.

If we go that route, for consistency shouldn't Emacs also have aref-record and aref-byte-code-function as aliases for 'aref'?

A couple more glitches in current master, while we're at it: (aref 1 2) signals (wrong-type-argument arrayp 1) even though aref's first argument need not be an array. Similarly, (copy-sequence 1) signals (wrong-type-argument sequencep 1) even though copy-sequence's first argument need not be a sequence.



reply via email to

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