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: Jean Louis
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Mon, 28 Dec 2020 10:32:51 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Lars Ingebrigtsen <larsi@gnus.org> [2020-12-28 01:06]:
> Andreas Schwab <schwab@linux-m68k.org> writes:
> 
> > Why do you need to reimplement nthcdr, badly?
> 
> Because people say (if (= (length foo) 0)) all over the place, without
> caring whether foo is a list, a string, or whatever, and I want them to
> be able to say (if (length= foo 0)) with the same confidence and
> convenience.

That function could also test for second parameter if it is something
else but number to help in testing (length= list list) as well or
strings.

I will start using it.

(defun length= (seq arg)
  (if (numberp arg)
      (= (length seq) arg)
    (= (length seq) (length arg))))




reply via email to

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