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: Tomas Hlavaty
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Mon, 28 Dec 2020 00:40:20 +0100

On Sun 27 Dec 2020 at 18:17, "Alfred M. Szmidt" <ams@gnu.org> wrote:
> If (> (length foo) 10) is bad or not depends entierly on its context.

(> (length foo) 10)

uselessly counts (max 0 (- (length foo) 10)) items (+/- off by one
error?)

(length> foo 10)

uselessly counts 0 items

>    > then one should definitly not be introducing something like
>    > length= as a means to evade it, since both those forms are to be
>    > avoided.
>
>    Why?
>
> If foo is a list, then you should use null.  If foo is a string, you
> should use string-empty-p.  If foo is some other, you should use that.

I do not use anything.

The bad code _is already_ in Emacs.

For new code, suggestions are nice, but will likely not bear much
fruits.

Also (if (null foo) ...) is ugly, (if foo ...) is much nicer.



reply via email to

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