December 2021
Beginner
840 pages
47h 29m
English
In this section we discuss the conceptual differences between first-class continuations and imperative mechanisms for nonlocal transfer of control. This comparison provides more insight into the power of first-class continuations.
The goto statement in most languages supporting primarily imperative programming is reserved for nonlocal transfer of control:
This simple example illustrates the use of a label again: (line 6) and a goto (line 8) to create a repeated transfer of control resulting in an infinite loop.
Programmers are generally advised to avoid ...