[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The poor state of documentation of pcase like things.
From: |
John Wiegley |
Subject: |
Re: The poor state of documentation of pcase like things. |
Date: |
Wed, 23 Dec 2015 22:15:01 -0800 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) |
>>>>> Richard Stallman <address@hidden> writes:
> Is _ as wildcard a UPattern? In other words, should this
>> (pcase value
>> (`(_ 1 2)
>> (message "Matched a list of anything followed by (2 3)")))
> really be this?
>> (pcase value
>> (`(,_ 1 2)
>> (message "Matched a list of anything followed by (2 3)")))
> If so, now the description makes sense.
Yes, this is correct.
> But I think it might be useful to define _
> as a QPattern to be equivalent to ,_.
> It is true that this would make it an exception among QPatterns,
> but one exception might be worth while.
I don't see much value in doing so; is it just to save a comma?
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
- Re: The poor state of documentation of pcase like things., (continued)
- Re: The poor state of documentation of pcase like things., John Wiegley, 2015/12/22
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/19
- Re: The poor state of documentation of pcase like things., Eli Zaretskii, 2015/12/19
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/19
- Re: The poor state of documentation of pcase like things., John Wiegley, 2015/12/22
- Re: The poor state of documentation of pcase like things., Phillip Lord, 2015/12/19
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/19
- Re: The poor state of documentation of pcase like things., Phillip Lord, 2015/12/19
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/20
- Re: The poor state of documentation of pcase like things., Richard Stallman, 2015/12/24
- Re: The poor state of documentation of pcase like things.,
John Wiegley <=
- Re: The poor state of documentation of pcase like things., Richard Stallman, 2015/12/25
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/25
- Re: The poor state of documentation of pcase like things., John Wiegley, 2015/12/25
- Re: The poor state of documentation of pcase like things., Richard Stallman, 2015/12/26
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/26
- Re: The poor state of documentation of pcase like things., Aaron Ecay, 2015/12/26
- Re: The poor state of documentation of pcase like things., Michael Heerdegen, 2015/12/26
- Re: The poor state of documentation of pcase like things., Richard Stallman, 2015/12/26
RE: The poor state of documentation of pcase like things., Drew Adams, 2015/12/16
Re: The poor state of documentation of pcase like things., Phillip Lord, 2015/12/17