Skip to content
Prev 26216 / 63424 Next

Inspecting promises

Please keep in mind that while lazy evaluation and delayedAssign are
documented parts of the language, promises are an internal
implementation mechanism that is subject to change.  In particular the
fact that substitute behaves the way it does is a coincidence of the
current implementation that may very well change.  Currently, for
example, the use of promises to make substitute work means promises
need to be kept around once thei are forced.  This is inefficient in
several ways and may need to be fixed at some point.

It may well be useful to provide some reflection mechanisms for
examining environments, but there are more issues to consider than
pending evaluations (active bindings for example). I'm not sure when
this will rise to the top of anyone's priority list for
implementation.

luke
On Sun, 23 Sep 2007, Gabor Grothendieck wrote: