[Haskell-cafe] Laziness enhances composability: an example

Thomas Davie tom.davie at gmail.com
Thu Jul 9 09:06:19 EDT 2009


On 9 Jul 2009, at 14:55, Cristiano Paris wrote:

> Hi,
>
> I'm wondering what a good example of why laziness enhances  
> composability would be.
>
> I'm specifically looking for something that can't implemented in  
> Python with iterators (at least not elegantly), but can actually be  
> implemented in Haskell.

Pretty much anything that uses "tying the knot" is very difficult to  
implement in a non-lazy language without a lot of indirection.

Bob


More information about the Haskell-Cafe mailing list