[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instead of pcase
From: |
Michael Heerdegen |
Subject: |
Re: Instead of pcase |
Date: |
Tue, 21 Nov 2023 16:38:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Dmitry Gutov <dmitry@gutov.dev> writes:
>> In particular, what is the reason for the period and inner
>> parenthsses? Why doesn't the code say this?
This was a really good question.
> The particular shape is chosen to follow how the data matched against
> was constructed in completion--capf-wrapper: (cons fun res). So it was
> for the ease of comprehension, actually.
Indeed. The backquote syntax allows to resemble the structure of the
matched list. So it actually helps the readers understanding.
Stefan did not choose this syntax by accident. On the contrary, it
helps writing readable code for complex cases. Exactly what
higher-level constructs are good for: support writing and reading
complex code.
Michael.
- Re: Instead of pcase, (continued)
- Re: Instead of pcase, Dmitry Gutov, 2023/11/24
- Re: Instead of pcase, Richard Stallman, 2023/11/26
- Re: Instead of pcase, Richard Stallman, 2023/11/27
- Re: Instead of pcase, Nikita Domnitskii, 2023/11/28
- Re: Instead of pcase, Richard Stallman, 2023/11/29
- Re: Instead of pcase, Dmitry Gutov, 2023/11/19
- Re: Instead of pcase, Richard Stallman, 2023/11/20
- Re: Instead of pcase, Jim Porter, 2023/11/21
- Re: Instead of pcase, Yuri Khan, 2023/11/21
- Re: Instead of pcase, Dmitry Gutov, 2023/11/21
- Re: Instead of pcase,
Michael Heerdegen <=
- Re: Instead of pcase, Richard Stallman, 2023/11/22
- Re: Instead of pcase, Richard Stallman, 2023/11/23
- Re: Instead of pcase, Jim Porter, 2023/11/23
- Re: Instead of pcase, Eli Zaretskii, 2023/11/24
- Re: Instead of pcase, Emanuel Berg, 2023/11/25
- Re: Instead of pcase, Dmitry Gutov, 2023/11/24
- Re: Instead of pcase, Lynn Winebarger, 2023/11/24
- Re: Instead of pcase, Richard Stallman, 2023/11/27
- Re: Instead of pcase, Lynn Winebarger, 2023/11/30
- Re: Instead of pcase, Eli Zaretskii, 2023/11/30