emacs-devel
[Top][All Lists]
Advanced

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

Re: Installing cond* in core


From: Stefan Monnier
Subject: Re: Installing cond* in core
Date: Fri, 02 Feb 2024 13:50:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> But that would rule out the possibility of simplifying pcase by
> rewriting it in terms of cond*.  ;-)

AFAICT the implementation of `match*` is not designed to handle the task
of matching against several patterns to select which branch to use.

So in order to reimplement `pcase` on top of `match*`s machinery we'd
have to choose between a significant rework/redesign of `match*`, or
a macro-expansion result which performs more repeated tests and
operations at runtime.


        Stefan




reply via email to

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