emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace trivial pcase occurrences in the Emacs sources


From: Daniel Pittman
Subject: Re: Replace trivial pcase occurrences in the Emacs sources
Date: Wed, 24 Oct 2018 09:08:43 -0400

On Wed, Oct 24, 2018 at 8:38 AM Stefan Monnier <address@hidden> wrote:
>>   > In what sense is the above cl-case more clear than the pcase equivalent?
>>   > I'm not saying the pcase version is better in those cases, but I think
>>   > the respective advantages and disadvantages pretty much balance out.
>> I also wonder.  Is it simply that people find pcase unfamiliar?

> Well, I can't speak for others, but personally, though I find pattern
> matching as a concept straightforward and intuitive, pcase syntax
> seems unnecessarily complex and unintuitive.

Joost, could you post this in another thread?  You're discussing
destructuring pcase patterns, whereas this discussion is about cl-case
vs pcase, where there's no destructuring and no backquote in sight.

For what it is worth, I agree with Joost, and I thought this *was* the required syntax for the use case being discussed.  Which, despite having written a fair bit of pcase and pcase-let based code recently, probably tells you a bit about the learning curve for the tool.

reply via email to

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