User Tools

Site Tools


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
continuation_passing_style [2012/10/23 23:58]
continuation_passing_style [2015/02/02 08:28] (current)
Line 1: Line 1:
 ====== Continuation passing style ====== ====== Continuation passing style ======
-More commonly, functions return a value directly this is called ​the direct style.+More commonly, functions return a value directly this is called direct style.
 [algorithm continuation passing style-direct] [algorithm continuation passing style-direct]
Line 12: Line 12:
 [algorithm continuation passing style-delayed] [algorithm continuation passing style-delayed]
 +Continuations are not just limited to a single return continuation. The Javascript interpreter that runs the code in these examples takes 6 different continuations. These handle control flow for things like breaking from for loops and exceptions.
continuation_passing_style.txt ยท Last modified: 2015/02/02 08:28 (external edit)