emacs-devel
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]