[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clarify `pcase' `rx' pattern doc
From: |
Michael Heerdegen |
Subject: |
Re: Clarify `pcase' `rx' pattern doc |
Date: |
Thu, 21 Jun 2018 17:13:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> Could you please elaborate on what you didn't like or found confusing
> in the original text, and why? Then perhaps I could suggest how to
> modify the text to satisfy us both. OK?
As I said - the second arg of `let' in the `rx' pattern is of the same
type as the argument of `rx' - a formal regexp. But because it is named
differently ("FORM"), I assumed it would be something different - and
because it is named form, I thought, well, it should be a form.
So there are two things: (1) the arguments of the `rx' macro, the `rx'
pcase macro, and the first arg of the `let' subpattern in `rx' should
have the same name, and (2) we need to go away from the argument name
"REGEXP" since we agree that it's a confusing name, but it's used in
many places, the `rx' macro among them.
Michael.
- Re: Clarify `pcase' `rx' pattern doc, (continued)
Re: Clarify `pcase' `rx' pattern doc, Michael Heerdegen, 2018/06/18
- Re: Clarify `pcase' `rx' pattern doc, Stefan Monnier, 2018/06/18
- Re: Clarify `pcase' `rx' pattern doc, Eli Zaretskii, 2018/06/18
- Re: Clarify `pcase' `rx' pattern doc, Michael Heerdegen, 2018/06/21
- Re: Clarify `pcase' `rx' pattern doc, Eli Zaretskii, 2018/06/21
- Re: Clarify `pcase' `rx' pattern doc,
Michael Heerdegen <=
- Re: Clarify `pcase' `rx' pattern doc, Eli Zaretskii, 2018/06/23