help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql'


From: Emanuel Berg
Subject: Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql'
Date: Wed, 28 Dec 2022 05:23:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Drew Adams wrote:

> `cl-pushnew' should be an emulation of Common Lisp `pushnew' -
> neither more nor less.
>
> I'm not sure what your point is, but `pushnew' defaults to using
> `eql', not `equal' (or `string='). So if you want `pushnew' to
> compare strings then yes, you should pass a predicate such as
> `string=' (or `equal').

It's much better if the function itself checks what type the value
is of and pick a suitable function to compare from that, then the
user don't have to think about that at all.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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