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: Stefan Monnier
Subject: Re: [External] : Re: Emacs 30.0 warning from `cl-pushnew' and `memql'
Date: Wed, 28 Dec 2022 22:34:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

>> > And it applies to `case', IMHO.  Encouraging or
>> > coercing folks to use `pcase' or `cond' just to
>> > handle the simple and common case of `case' is
>> > overkill.
>> 
>> For those cases handled by `(cl-)case`, `pcase` is just as easy to use
>> [ apparently even easier for some people who otherwise write (case FOO
>> ('a (do-a)) ('b (do-b) ...)) ], so I don't see what's overkill about it.
>
> Did you mean (case FOO (a (do-a)) (b (do-b) ...))?

No, I did mean exactly what I wrote.

> No need to quote.

I know.  But lots of users don't and they so quote, hence using the syntax
that would be correct with `pcase` but that has a "subtly" different
meaning for `cl-case`.
That's what I meant by "even easier for some people".

> IOW, I don't argue that we shouldn't have `pcase'.
> I don't see why we shouldn't also have `case'
> (sans `cl-'), that's all.

What's the benefit (other than having to learn 2 subtly different
things instead of just one)?


        Stefan




reply via email to

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