\mathsf {Delay} [00GS]

If \tau is a type, then \mathsf {Delay}^{\Delta }\;\tau is a type representing delayed expressions of type \tau . The annotation \Delta represents the capabilities needed to force evaluation of the contained expression.

The delay type comes with two built-in constants, \mathsf {delay} and \mathsf {force}, representing introduction and elimination forms, with typing rules as follows:

The idea is that if we wrap a term in a delay, then any capabilities needed to evaluate it are put off until such time as its evaluation is forced.

Context

Pure fragment of the Swarm language [001T]

Backlinks

Remark. [00GT]