Introduction to Delimited Continuations
Appearance
Summary
[edit | edit source]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.
Lessons
[edit | edit source]Subject classification: this is an information technology resource. |
Completion status: Almost complete, but you can help make it more thorough. |
- The second program ever
- A hidden continuation
- The rest of the program
- Using shift and reset
- Handling the continuation
- Hiding the shift
- Embedded shifts
- In action