emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] pcase.el: Add type pattern


From: Michael Heerdegen
Subject: Re: [PATCH] pcase.el: Add type pattern
Date: Tue, 10 Mar 2020 16:01:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Adam Porter <address@hidden> writes:

> +;;; Pcase type pattern.
> +
> +(pcase-defmacro type (type)
> +  "Pcase pattern that matches objects of TYPE."
> +  `(pred (pcase--flip cl-typep ',type)))

If we keep these semantics and the patch is accepted, you should
document here what TYPE means.  IIUC any type expression allowed by
`cl-typep' will be possible, right?  Then just say something like "TYPE
is a type name like in `cl-typep'" or so.

Thanks,

Michael.



reply via email to

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