[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on pcase
From: |
Michael Heerdegen |
Subject: |
Re: Question on pcase |
Date: |
Tue, 27 Oct 2015 15:47:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Michael Heerdegen <address@hidden> writes:
> Hmm, as I said before, it's impossible in the general case to separate a
> `pcase' pattern into a side effect free matching part and a
> binding/setting part. That's because when variable binding is done,
> bindings established while performing the matching need to be in effect;
> look at the example at the end to see what I mean.
Of course could you use temporary vars to delay the actual settings
until you want to establish them. However, the computation of the
values that will be bound can't be separated from the predicate F that
is returned by `abo-transform-pcase-pattern', unless you want to rerun
the matching code with all potential side effects.
But AFAIU `abo-transform-pcase-pattern' should be sufficient for your
purpose.
Michael.
- Re: Question on pcase, (continued)
- Re: Question on pcase, Oleh Krehel, 2015/10/26
- Re: Question on pcase, Michael Heerdegen, 2015/10/26
- Re: Question on pcase, Oleh Krehel, 2015/10/27
- Re: Question on pcase, Michael Heerdegen, 2015/10/26
- Re: Question on pcase, Oleh Krehel, 2015/10/27
- Re: Question on pcase, Michael Heerdegen, 2015/10/27
- Re: Question on pcase,
Michael Heerdegen <=
- Re: Question on pcase, Michael Heerdegen, 2015/10/28
- Re: Question on pcase, Oleh Krehel, 2015/10/29
- Re: Question on pcase, Michael Heerdegen, 2015/10/29
- Re: Question on pcase, Andreas Schwab, 2015/10/26