[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
- Emacs 30.0 warning from `cl-pushnew' and `memql', Emanuel Berg, 2022/12/26
- Re: Emacs 30.0 warning from `cl-pushnew' and `memql', tomas, 2022/12/28
- Re: Emacs 30.0 warning from `cl-pushnew' and `memql', Michael Heerdegen, 2022/12/28
- Re: Emacs 30.0 warning from `cl-pushnew' and `memql', tomas, 2022/12/28
- RE: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql', Drew Adams, 2022/12/28
- Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql', Stefan Monnier, 2022/12/28
- RE: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql', Drew Adams, 2022/12/28
- Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql', tomas, 2022/12/28