I just don’t get continuations!

Imagine if every single line in your program was a separate function. Each accepts, as a parameter, the next line/function to execute.

Using this model, you can “pause” execution at any line and continue it later. You can also do inventive things like temporarily hop up the execution stack to retrieve a value, or save the current execution state to a database to retrieve later.

Leave a Comment

tech