emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-25 1d4887a: Improve documentation of 'pcase'


From: Michael Heerdegen
Subject: Re: emacs-25 1d4887a: Improve documentation of 'pcase'
Date: Mon, 25 Jan 2016 17:10:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Drew Adams <address@hidden> writes:

> So in principle there could be a need to specify different equality
> predicates for different patterns of the same `pcase', or even for
> different parts of the same pattern.
>
> Or maybe the different-parts-of-the-same-pattern problem could
> be expressed in stages, i.e., by breaking a complex pattern into
> multiple simpler patterns, each possibly with its own equality
> predicate.

That's already possible by calling a predicate explicitly by using pred,
e.g. instead of a second occurrence of SYMBOL you can use

 (pred (my-equal SYMBOL))

I think a distinct controlling mechanism for "implicit" equivalence
testing would make the thing too complicated.


Michael.



reply via email to

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