[Haskell-cafe] Re: Why purely in haskell?

Tillmann Rendel rendel at rbg.informatik.tu-darmstadt.de
Thu Jan 10 12:38:07 EST 2008


jerzy.karczmarczuk at info.unicaen.fr wrote:
>> Although it could be argued that laziness is the cause of some very 
>> obscure bugs... <g> Niko
> 
> Example, PLEASE.

Prelude> sum [1..1000000]
*** Exception: stack overflow

Prelude> Data.List.foldl' (+) 0 [1..1000000]
500000500000

   Tillmann


More information about the Haskell-Cafe mailing list