[Haskell-cafe] Re: Shouldn't this loop indefinitely => take (last [0..]) [0..]

Neil Mitchell ndmitchell at gmail.com
Fri Apr 4 07:34:54 EDT 2008


>  length, take, drop and index working on machine-sized Ints by default
>  are really a bit of a wart, aren't they?

Yes. Also, having strict Int's by default is a bit ugly, in an
otherwise lazy-by-default language. It's a place where Haskell decided
to remove mathematical elegance for pragmatic speed...

(Not that it isn't a worthwhile trade off, but it is still loosing
something to gain something else)



More information about the Haskell-Cafe mailing list