unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Can't compile `or' pcase pattern
Date: Sat, 13 May 2017 16:14:52 +0200	[thread overview]
Message-ID: <87efvszvvn.fsf@drachen> (raw)
In-Reply-To: <jwvshkaizjb.fsf-monnier+gmane.emacs.devel@gnu.org> (Stefan Monnier's message of "Thu, 11 May 2017 22:29:56 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Looking at the definition of `l` I think you're pushing pcase a bit
> further than it can go.
>
> A bit like a DFA representation of a regexp can explode, a pcase's
> expansion can explode in some cases, and your `l` has all the tools
> needed to triggger such explosions.

Hmm, somehow I expected the technical term "explode" in your answer.

> Maybe you can reduce the pain, by looking at the expansion and trying
> to see how pcase-mutually-exclusive-p could be improved to get a
> better result.

I guess you mean `pcase--mutually-exclusive-p'.  When I get the time
I'll try to learn how that works.  For now, I have narrowed the
semantics of the lpats so that they don't automatically also try quoted
and function-quoted symbols.

Thanks,

Michael.



      reply	other threads:[~2017-05-13 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-11 16:04 Can't compile `or' pcase pattern Michael Heerdegen
2017-05-12  2:29 ` Stefan Monnier
2017-05-13 14:14   ` Michael Heerdegen [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87efvszvvn.fsf@drachen \
    --to=michael_heerdegen@web.de \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).