[Haskell-cafe] Re: curious about sum
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,
>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe