[Haskell-cafe] Re: curious about sum

Edward Kmett ekmett at gmail.com
Thu Jun 18 10:21:19 EDT 2009

On Thu, Jun 18, 2009 at 9:14 AM, Gleb Alexeyev <gleb.alexeev at gmail.com>wrote:

> Thomas Davie wrote:
>> No, I think it's extremely useful.  It highlights that numbers can both be
>> lazy and strict, and that the so called "useless" lazy sum, is in fact,
>> useful.
>> But lazy sum should have beed defined in terms of foldr, not foldl. And
> foldl is not strict enough for strict sum. Therefore the current choice in
> the worst of both worlds.

I definitely agree with that sentiment.

-Edward Kmett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090618/04c701fb/attachment.html

More information about the Haskell-Cafe mailing list