bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#49316: Add apply-partially's right version


From: Michael Heerdegen
Subject: bug#49316: Add apply-partially's right version
Date: Tue, 06 Jul 2021 06:33:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

daanturo <daanturo@gmail.com> writes:

> The author has mentioned that the reason for being a macro with extra
> parentheses was the ability to work with `eldoc`: inside the inner pair of
> parentheses, we can look at parameters suggestion which is normally
> not possible
> with `apply-partially`.
>
> `applying-partially` is bit confusing given the name of the existing
> function.
> To differentiate it, can we name this macro differently? Like
> `any-partial-application`, `partially-apply-at_`, etc.

I don't insist on the name, I used just some random different name.

There are several advantages of a macro here: the parameters can be
processed at compile-time, generating slightly nicer code.  And the
programmer doesn't need to quote the _ symbol.

But I agree that a function version would make sense, too.

Michael.





reply via email to

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