emacs-devel
[Top][All Lists]
Advanced

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

Re: Instead of pcase


From: Dmitry Gutov
Subject: Re: Instead of pcase
Date: Tue, 28 Nov 2023 14:39:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 28/11/2023 04:44, Richard Stallman wrote:
   > I suggest you try rewriting the definition of completion-help-at-point
   > using your alternative construct.

I did that, and found that translating that particular pcase to use
cond* resulted in something about equally complex.

I guess that's the point I wanted to underscore: that those pcase uses are more-or-less optimal in terms of complexity (for its ultimate goals), that in most cases it comes from the problem domain rather than from the solution.

And I'm guessing your solutions were more verbose, if anything.

But I recognized
some changess to make in cond* as a result.  Those changes are in the
newer version I sent out during the weekend.

Happy to help. Though note that simply adding a new way to do the same thing that's not better by a sufficiently large margin, usually leads to "now we have N+1 standards".



reply via email to

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