emacs-devel
[Top][All Lists]
Advanced

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

Re: Internationalize Emacs's messages (swahili)


From: Daniel Brooks
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Sat, 26 Dec 2020 02:02:10 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Date: Sat, 26 Dec 2020 10:34:46 +0100
>> 
>> > (not (null (cdr deleted))) would avoid traversing the entire list, but it
>> > wouldn't be easier to read.
>> 
>> Perhaps a `longer-than-p' function would be helpful?  I.e.,
>> (longer-than-p deleted 1)?  (Or some better name.)
>
> Just add an optional arg LIMIT to 'length', since the implementation
> will be the same, and you just want to terminate the loop as early as
> possible.

I would still define functions with specific names like longer-than-p
which have names that specify their exact meaning, even if they just
call length with extra arguments.

db48x



reply via email to

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