Skip to content

Routine

Ben Christel edited this page Feb 5, 2023 · 10 revisions

I use the following terms to refer to callable units of code:

The types of routines vary in their Capabilities.

Note that all of these terms refer to static/source-code entities. A Closure is a runtime instantiation of a routine in which FreeVariables of the routine are looked up in the LexicalScope that was in effect at the time and place of the closure's creation. We can thus speak of ProcedureClosures, MethodClosures, and FunctionClosures. There can be many different closures in a process that originate from the same routine.

State Interactions

The ways in which a routine can interact with State are:

Clone this wiki locally