emacs-devel
[Top][All Lists]
Advanced

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

Global and local definitions of non-functions/variable (was: More re odd


From: Stefan Monnier
Subject: Global and local definitions of non-functions/variable (was: More re odditie [Was: regular expressions that match nothing])
Date: Thu, 16 May 2019 17:01:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I would much rather see a clean, robust and expressive extension mechanism
> for rx (`rx-constituents' does not count).  There are various hacks and
> libraries but it probably needs to be integrated.

Agreed.  Something like `rx-defmacro` and `rx-macrolet`.

Reminds me that this is a recurring need (we see it in `pcase`, in
`peg`, here, and arguably in `gv`).  It would be nice if we could design
a general solution that those packages can (re)use.


        Stefan


PS: Arguably `cl-defmethod` could also be extended to a kind of
    `methodlet` for scoped methods, but it might be tricky to do that.
    OTOH, this might provide exactly the generic mechanism we need to
    implement the others.




reply via email to

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