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: Lars Ingebrigtsen
Subject: bug#49316: Add apply-partially's right version
Date: Mon, 25 Oct 2021 14:50:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Like Stefan, I don't find partial application weird.
> But I'm not sure what's the advantage of
>
>     (apply-rpartially #'foo x y)
>
> over
>
>     (lambda (a b) (foo a b x y))

The advantage is that the first form looks more mysterious and you can
use words like "currying" to sound smarter.  :-)

> `apply-partially` was handy before we had `lexical-binding`, but
> I wouldn't have added it to Emacs after Emacs-24.
> We already have `dash.el` for those users who like this style.

I agree.  So I think the conclusion here is that we don't want to add
apply-rpartially to Emacs core -- the people that prefer this style will
find more complete coverage in dash.el (which is on GNU ELPA).

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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