
24 Dec
2008
24 Dec
'08
11:11 p.m.
On Thu, 2008-12-18 at 11:01 +0000, Robin Green wrote:
In my opinion, in Haskell, you don't need coroutines because you have lazy evaluation.
You example below is simply an example of a heterogenous list being read. The simplest way to implement a heterogenous list in Haskell is to use a tuple. Or you could use the HList package.
Lazy evaluation obviates some, but certainly not all uses of coroutines.