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: Alfred M. Szmidt
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Sun, 27 Dec 2020 18:55:06 -0500

   > 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?)

There are more things in life than lists ...  length on a char-table
or a string is constant.

What is trying to be optimized here is not (PREDICATE (length ...))
but rather the implicit list-length, i.e. (PREDICATE (list-length
...)).

   The bad code _is already_ in Emacs.

Then that code should be fixed, it will be needed to be fixed anyway
-- a new function won't fix it magically.



reply via email to

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