[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `
From: |
Michael Heerdegen |
Subject: |
bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions' |
Date: |
Sat, 28 Jun 2014 17:53:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) |
Hi,
BTW, the second sentence here from (info "(elisp) Calling Functions") is
confusing too wrt what it says about arguments.
,----------------------------------------------------------------------
| The act of fixing some of the function’s arguments is
| called "partial application" of the function(1). The result is a new
| function that accepts the rest of arguments and calls the original
| function with all the arguments combined.
`----------------------------------------------------------------------
IMHO we should be more clearer about arguments, but then we can keep the
1+ example. I think it would be more important to say that
`apply-partially` is most useful in combination with functionals, as it
is explained later on that info page. That the result accepts any
number of arguments is more kind of an implementation detail.
Michael.
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Michael Heerdegen, 2014/06/27
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Drew Adams, 2014/06/27
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions',
Michael Heerdegen <=
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Eli Zaretskii, 2014/06/28
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Michael Heerdegen, 2014/06/28
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Eli Zaretskii, 2014/06/28
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Drew Adams, 2014/06/28
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Michael Heerdegen, 2014/06/28
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Eli Zaretskii, 2014/06/29
- bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions', Stefan Monnier, 2014/06/29