[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: thunk.el: Document that thunk-force == funcall?
From: |
Drew Adams |
Subject: |
RE: thunk.el: Document that thunk-force == funcall? |
Date: |
Tue, 17 Nov 2020 09:32:07 -0800 (PST) |
> `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.
FWIW, that makes sense to me. Why not tell users this?
It's fine to have an abstraction, but in Lisp it can
help to know the implementation, especially in a
straightforward case like this.
- Re: thunk.el: Document that thunk-force == funcall?, (continued)
- 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
- Re: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/18
- Re: thunk.el: Document that thunk-force == funcall?, Stephen Leake, 2020/11/18
Re: thunk.el: Document that thunk-force == funcall?, Alfred M. Szmidt, 2020/11/18
RE: thunk.el: Document that thunk-force == funcall?,
Drew Adams <=
RE: thunk.el: Document that thunk-force == funcall?, Tomas Hlavaty, 2020/11/19
RE: thunk.el: Document that thunk-force == funcall?, Nicolas Petton, 2020/11/19
Re: thunk.el: Document that thunk-force == funcall?, Stefan Monnier, 2020/11/17