emacs-devel
[Top][All Lists]
Advanced

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

Re: Instead of pcase


From: Stefan Monnier
Subject: Re: Instead of pcase
Date: Fri, 24 Nov 2023 23:23:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> I agree that once you introduce guards/predicates, pcase gets ugly fast,

Yeah, it's also my experience (tho a single `pred` is usually OK as long as you
don't also need to bind the value, thus forcing you into the ugly
`(and (pred PRED) VAR)` thingy).

I have toyed with the idea of providing the guards separately from the
patterns, but not enough to find something satisfactory.


        Stefan




reply via email to

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