[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#66816: [PATCH] Delete redundant lambdas around unary functions
From: |
Mattias Engdegård |
Subject: |
bug#66816: [PATCH] Delete redundant lambdas around unary functions |
Date: |
Mon, 30 Oct 2023 09:56:01 +0100 |
29 okt. 2023 kl. 22.55 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
> The patch looks good to me.
To me, too -- good work.
One version that the patch doesn't seem to include is
(lambda (X...) (funcall F X...)) -> F
which is less safe in general (since the value of the expression F could change
between the closure creation and application) but sometimes obviously fine, as
when the function is a parameter to `mapcar`.
The patch also appears limited to unary functions.