all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Antoniotti <marcoxa@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: brubar.cs@gmail.com, Stefan Monnier <monnier@iro.umontreal.ca>,
	70597@debbugs.gnu.org
Subject: bug#70597: Problem in pcase-let?
Date: Thu, 2 May 2024 13:06:58 +0200	[thread overview]
Message-ID: <CAKmY7cU0NeQEincr8LvcJctg1+YM5tMcPPPUoUK--QJzhaSWuw@mail.gmail.com> (raw)
In-Reply-To: <865xvwmus2.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2224 bytes --]

  reply	other threads:[~2024-05-02 11:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-26 18:00 bug#70597: Problem in pcase-let? Marco Antoniotti
2024-04-27 16:11 ` Bruno Barbier
2024-04-27 22:28   ` Marco Antoniotti
2024-04-28 10:01     ` Bruno Barbier
2024-04-28 10:07       ` Ihor Radchenko
2024-04-28 10:18         ` Eli Zaretskii
2024-04-28 15:22     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-28 15:38       ` Marco Antoniotti
2024-04-28 17:05         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-28 18:22           ` Marco Antoniotti
2024-04-28 21:08             ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-02  9:23               ` Eli Zaretskii
2024-05-02 11:06                 ` Marco Antoniotti [this message]
2024-05-04 11:35                   ` Eli Zaretskii
2024-05-04 12:06                     ` Marco Antoniotti
2024-05-04 15:05                       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05  8:49                         ` Marco Antoniotti
2024-05-04 15:23               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKmY7cU0NeQEincr8LvcJctg1+YM5tMcPPPUoUK--QJzhaSWuw@mail.gmail.com \
    --to=marcoxa@gmail.com \
    --cc=70597@debbugs.gnu.org \
    --cc=brubar.cs@gmail.com \
    --cc=eliz@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.