4 ms·
This is a great article. Continuations are rarely understood, which is unfortunate, given their power. I wrote an article for my compilers class that gives ex
by fadmmatt 17y ago
This is a great article. Continuations are rarely understood, which is unfortunate, given their power.
I wrote an article for my compilers class that gives examples of how to use continuations (in Scheme):
http://matt.might.net/articles/programming-with-continuations--exceptions-backtracking-search-threads-generators-coroutines/ http://matt.might.net/articles/programming-with-continuation...
It covers basic stuff like exceptions and back-tracking search, and more advanced topics like threads, generators and coroutines.