[Top][All Lists]

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

Re: pcase-if-let?

From: Michael Heerdegen
Subject: Re: pcase-if-let?
Date: Thu, 29 Mar 2018 07:24:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> FWIW, I'm a bit worried about this case: it's not like this pcase-if
> is a "pcase version of some existing construct", so if we ever want to
> get rid of the "pcase-" prefix on it, we'll have to invent a new name
> for it.

True.  But "pif" sounds too funny...we need to find a different name.

> PS: Regarding the "unorthodox" shape of the pcase construct, you could
> generate an expression of the form (pcase (list E1 E2 ...) ((list P1 P2
> ...) THEN) (_ ELSE)).

What's `list' - a new pattern type?  If you write it like this, it looks
like parallel matching of the Pi patterns, though we need to match in
order for i=1,...


reply via email to

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