[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A generalization of `thunk-let'
From: |
Michael Heerdegen |
Subject: |
Re: A generalization of `thunk-let' |
Date: |
Tue, 12 Dec 2017 15:41:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> There wasn't enough space in the margin for it, sorry,
Very funny, ehm -
here is a proof of concept. It is not exactly what you suggested: you
have to declare dependencies explicitly (I think this would even make
code better readable). But dependencies do not need to be sscells - I
made it so that dependencies can be arbitrary expressions (this includes
variables as major case), and an equivalence predicate for testing can
be optionally specified, defaulting to #'eq.
You can make an sscell B depend on the value of sscell A by making B
depend on the expression (sscell-get A).
These sscell objects are a generalization of thunks as in thunk.el, and
sscell-let is a generalization of thunk-let.
sscell.el
Description: application/emacs-lisp
Regards,
Michael.
- A generalization of `thunk-let' (was: `thunk-let'?), Michael Heerdegen, 2017/12/08
- Re: A generalization of `thunk-let', Stefan Monnier, 2017/12/08
- Re: A generalization of `thunk-let', Michael Heerdegen, 2017/12/09
- Re: A generalization of `thunk-let', Stefan Monnier, 2017/12/09
- Re: A generalization of `thunk-let', John Wiegley, 2017/12/10
- Re: A generalization of `thunk-let',
Michael Heerdegen <=
- Re: A generalization of `thunk-let', Michael Heerdegen, 2017/12/13
- Re: A generalization of `thunk-let', Stefan Monnier, 2017/12/13
- Re: A generalization of `thunk-let', Michael Heerdegen, 2017/12/13
Re: A generalization of `thunk-let' (was: `thunk-let'?), Richard Stallman, 2017/12/09