continuation-passing style (CPS) does: makes control flow explicit via callbacks

CPS: `function f(a, callback) { ... callback(result); }`

Image: kees torn, CC BY-SA 2.0, via Wikimedia Commons

continuation-passing style (CPS) does: makes control flow explicit via callbacks

CPS: `function f(a, callback) { ... callback(result); }`

Related concepts

One email a day: 5 concepts + the 5 stories that matter →

Swipe through 100 ML concepts daily

Open TickerNews