Open main menu

Introduction to Delimited Continuations


A delimited continuation is a representation of the "rest of a program" from the current program counter up to a designated boundary[1]. It has been described as a "functional GOTO", and can be a useful mechanism for managing the control flow of a program.

This learning project walks the student through the theory, syntax, and usage of delimited continuations in the Scala[2] programming language.