Promises are quite similar to thunks, but are intended to implement context-free computations(7). Since the result of the computation doesn't depend on when it is performed, there is no reason to waste CPU time computing it more than twice, so promises are guaranteed to evaluate at most once, subsequent invocations merely returning a saved copy of the original result:
Stack: 1: 2 3 + ; Stack: <thunk> 1+ Stack: 6
Promises are completely unimplemented as of Muq version -1.0.0.
Go to the first, previous, next, last section, table of contents.