Hi guys,

it's your call.  But please change the doc string to clarify that pcase-let does not do "symbol equality" pattern matching, but only structural matching.  Adding an example like the following will help.

(pcase-let ((`(foo ,x 23 ,y) '(bar 11 baz 22))) (list x y))

All the best

Marco

On Thu, May 2, 2024 at 11:24 AM Eli Zaretskii <eliz@gnu.org> wrote:
> Cc: Bruno Barbier <brubar.cs@gmail.com>, 70597@debbugs.gnu.org
> Date: Sun, 28 Apr 2024 17:08:21 -0400
> From:  Stefan Monnier via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> > In any case, at a minimum the warning should be issued.
>
> I haven't looked at the code for it, so I don't know how easy it is to
> implement, but let' hope there's an "easy" way to do it.
>
> > I did refrain from using pcase-let after all, although it "seemed
> > right" for my use case.  Having said that, I would advocate changing
> > the semantics.
>
> The places that already use it largely rely on the current semantics,
> so changing it would introduce a lot of breakage.
> It's not really an option.

So I guess we should close this as wontfix?


--
Marco Antoniotti
Somewhere over the Rainbow