emacs-devel
[Top][All Lists]
Advanced

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

Re: lengths and other stuff


From: Daniel Brooks
Subject: Re: lengths and other stuff
Date: Sun, 27 Dec 2020 15:35:09 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Tomas Hlavaty <tom@logand.com> writes:

> On Sun 27 Dec 2020 at 15:05, Daniel Brooks <db48x@db48x.net> wrote:
>> Some of them can no doubt be replaced by multiple-value-bind and other
>> such things. This one from ido.el:1518, for example:
>>
>>     (if (and (listp (car l))
>>              (> (length (car l)) 2)
>>              (let ((dir (car (car l)))
>>                    (time (car (cdr (car l))))
>>                    (files (cdr (cdr (car l)))))
>>
>> could be (multiple-value-bind (dir time files) (car l) …).
>>
>> But those kinds of improvements take a lot more thought about each
>> occurrence.
>
> Very good.  Now the other ~1700 cases.
>
> I think you introduced two bugs:

I'm surprised that it was more than one!

db48x



reply via email to

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