From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Stefan Kangas <stefankangas@gmail.com>, 66816@debbugs.gnu.org
Subject: bug#66816: [PATCH] Delete redundant lambdas around unary functions
Date: Mon, 30 Oct 2023 09:56:01 +0100 [thread overview]
Message-ID: <B6EC89B5-D1A9-4282-9F67-51E5105DACA5@gmail.com> (raw)
In-Reply-To: <jwvfs1tm71u.fsf-monnier+emacs@gnu.org>
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.
next prev parent reply other threads:[~2023-10-30 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-29 13:02 bug#66816: [PATCH] Delete redundant lambdas around unary functions Stefan Kangas
2023-10-29 19:03 ` Mattias Engdegård
2023-10-29 21:55 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-10-30 8:56 ` Mattias Engdegård [this message]
2023-10-30 15:00 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B6EC89B5-D1A9-4282-9F67-51E5105DACA5@gmail.com \
--to=mattias.engdegard@gmail.com \
--cc=66816@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).