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

Cristian Baboi cristi at ot.onrc.ro
Fri Jan 11 03:07:28 EST 2008


On Thu, 10 Jan 2008 19:38:07 +0200, Tillmann Rendel  
<rendel at rbg.informatik.tu-darmstadt.de> wrote:

> 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

Not true in Hugs.

> Prelude> Data.List.foldl' (+) 0 [1..1000000]
> 500000500000
>
>    Tillmann
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
> ________ Information from NOD32 ________
> This message was checked by NOD32 Antivirus System for Linux Mail  
> Servers.
>   part000.txt - is OK
> http://www.eset.com




________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
  part000.txt - is OK
http://www.eset.com


More information about the Haskell-Cafe mailing list