[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pcase: Semantics of atom QPATS
From: |
Noam Postavsky |
Subject: |
Re: pcase: Semantics of atom QPATS |
Date: |
Sat, 16 Jun 2018 09:42:40 -0400 |
On 16 June 2018 at 03:32, Michael Heerdegen <address@hidden> wrote:
>> > - ((or (stringp qpat) (integerp qpat) (symbolp qpat)) `',qpat)
>> > + ((or (stringp qpat) (numberp qpat) (symbolp qpat)) `',qpat)
>>
>> Any reasons to use numberp and not number-or-marker-p?
>
> Is it likely that someone constructs a pcase pattern with a literal
> marker in it? Note this is about the pattern, not about the matched
> value.
It would be pretty difficult to do that since markers don't have a
read syntax. It's possible using a macro which expands to a pcase
form, if you can handle the nested backquotes...
- RE: pcase: Semantics of atom QPATS, (continued)
- RE: pcase: Semantics of atom QPATS, Drew Adams, 2018/06/11
- Re: pcase: Semantics of atom QPATS, Michael Heerdegen, 2018/06/11
- Re: pcase: Semantics of atom QPATS, Michael Heerdegen, 2018/06/12
- Re: pcase: Semantics of atom QPATS, Stefan Monnier, 2018/06/13
- Re: pcase: Semantics of atom QPATS, Michael Heerdegen, 2018/06/16
- Re: pcase: Semantics of atom QPATS, Eli Zaretskii, 2018/06/16
- Re: pcase: Semantics of atom QPATS, Michael Heerdegen, 2018/06/16
- Re: pcase: Semantics of atom QPATS, Eli Zaretskii, 2018/06/16
- Re: pcase: Semantics of atom QPATS, Michael Heerdegen, 2018/06/17
- Re: pcase: Semantics of atom QPATS,
Noam Postavsky <=
- Re: pcase: Semantics of atom QPATS, Stefan Monnier, 2018/06/16