From: Michael Heerdegen <michael_heerdegen@web.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 17623@debbugs.gnu.org
Subject: bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions'
Date: Sat, 28 Jun 2014 21:37:06 +0200 [thread overview]
Message-ID: <87mwcwx1ul.fsf@web.de> (raw)
In-Reply-To: <83tx746fgd.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Jun 2014 21:45:22 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> > Say that
> >
> > (apply-partially f arg_1 ... arg_n)
> >
> > is equivalent to
> >
> > (lambda (&rest args) (apply f arg_1 ... arg_n args))
>
> Sorry, I don't see how this is an improvement.
It's an improvement because it's short and clearer than any text that
just tries to describe it.
> Accidentally, the current text is a bit different from what you cited:
I didn't cite anything, I just said that I don't find it clear, because
I think it can be misunderstood.
> > And I think that the paragraph about `apply-partially` should be merged
> > into the later text talking about functionals, because the main use case
> > of `apply-partially` is to construct anonymous functions for usage as
> > argument to some other function.
>
> If you mean this:
>
> It is common for Lisp functions to accept functions as arguments or
> find them in data structures (especially in hook variables and property
> lists) and call them using `funcall' or `apply'. Functions that accept
> function arguments are often called "functionals".
>
> Sometimes, when you call a functional, it is useful to supply a no-op
> function as the argument. Here are two different kinds of no-op
> function:
>
> then it directly follows the part we were talking about.
I were talking about both parts, and that we should say that
`apply-partially` is, like ignore and identity, as well mainly useful in
combination with functionals. That's all.
Eli, dunno why, but our discussions don't yield any results most of the
time. I would like to stop here, ok?
Michael.
next prev parent reply other threads:[~2014-06-28 19:37 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 23:53 bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions' Drew Adams
2014-06-27 18:41 ` Michael Heerdegen
2014-06-28 1:36 ` Drew Adams
2014-06-28 15:53 ` Michael Heerdegen
2014-06-28 16:55 ` Eli Zaretskii
2014-06-28 17:53 ` Michael Heerdegen
2014-06-28 18:45 ` Eli Zaretskii
2014-06-28 19:37 ` Michael Heerdegen [this message]
2014-06-29 14:57 ` Eli Zaretskii
2021-10-23 5:24 ` Stefan Kangas
2021-10-23 9:44 ` Michael Heerdegen
2021-10-23 11:05 ` Stefan Kangas
2021-10-23 11:58 ` Michael Heerdegen
2021-10-23 11:39 ` Eli Zaretskii
2021-10-23 12:44 ` Michael Heerdegen
2021-10-23 13:13 ` Eli Zaretskii
2021-10-23 15:29 ` Michael Heerdegen
2021-10-23 17:01 ` Stefan Kangas
2021-10-26 9:26 ` Michael Heerdegen
2021-10-26 20:24 ` Stefan Kangas
2021-10-27 9:18 ` Michael Heerdegen
2021-10-29 4:02 ` Richard Stallman
2021-10-29 10:00 ` Michael Heerdegen
2021-10-23 17:54 ` Eli Zaretskii
2021-10-23 13:14 ` Stefan Kangas
2021-10-23 15:38 ` Michael Heerdegen
2021-10-23 17:57 ` Eli Zaretskii
[not found] ` <<83tx746fgd.fsf@gnu.org>
2014-06-28 19:32 ` Drew Adams
2014-06-29 21:46 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwcwx1ul.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=17623@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.