News for hackers. Stuff that matters.
Re:How to slice your code into continuations by SatvikBeri on Monday May 06, 2019 @05:18PM (#19843980)
Not satire. The article focuses on how, rather than why, and uses the standard technique of starting with simple examples to illustrate the concept.

If all lists had two elements in them, for loops wouldn't be particularly helpful. Similarly, continuations don't make the simple example mentioned any better, but they're useful in more complex situations.

It does mention two non-trivial applications at the end: implementing list comprehensions in a language that doesn't have them (which are pretty useful!), and probabilistic programming.

There are no comments on this comment yet.