News for hackers. Stuff that matters.
Re:Haskell: Pure and Lazy, yet Functional by g__ on Sunday May 02, 2010 @11:13AM (#1312569)
Iterators sometimes require restructuring, as in

http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

In Haskell they don't - you might write this "producer-consumer" composing a function that produces a stream with a function that consumes a stream. How would you approach that problem in C++?

There are no comments on this comment yet.