[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recent pcase changes
From: |
Manuel Uberti |
Subject: |
Re: Recent pcase changes |
Date: |
Thu, 4 Mar 2021 15:41:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 04/03/21 15:39, Stefan Monnier wrote:
> With the new semantics you could also use
>
> (pcase method
> ((or (pred integerp) `(,m))
> (let ((method (or m method)))
> ...
>
> And to get something to work reliably with both the old and the new
> semantics, you can go with:
>
> (pcase method
> ((or (and (pred integerp) method) `(,method))
> ...
Thank you, I'll see if I can propose a PR with this last suggestion.
--
Manuel Uberti
www.manueluberti.eu