[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thunk.el: Document that thunk-force == funcall?
From: |
Michael Heerdegen |
Subject: |
thunk.el: Document that thunk-force == funcall? |
Date: |
Tue, 17 Nov 2020 16:17:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hello,
`thunk-force' is equivalent to `funcall' - thunks are functions. I
wonder if we could/should officially document that fact?
The background: because thunks are functions, one is allowed (and it is
useful) to directly pass them to higher order functions e.g. as a test
predicate, or bind them using `cl-flet', or `cl-letf' to a
`symbol-function' place. Currently, the official solution would require
to use a lambda wrapper.
I have encountered this requirement several times (and using `thunk-let'
was not always the solution) - thus my question.
TIA,
Michael.
- thunk.el: Document that thunk-force == funcall?,
Michael Heerdegen <=
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Michael Heerdegen, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Michael Heerdegen, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Stefan Monnier, 2020/11/17
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/18
- Re: thunk.el: Document that thunk-force == funcall?, Stefan Monnier, 2020/11/18
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/18
- Re: thunk.el: Document that thunk-force == funcall?, Stefan Monnier, 2020/11/18