Re:What's wrong with Object-Oriented Programming and Functio...
by marshray on Wednesday November 13, 2013 @05:29AM
(#6724336)
> technically haskell is non-strict, not lazy.
What do you mean by that?
> (a + (b * c)) evaluates + then * instead of * then +.
AIUI,
head 2 [1, 2, (digit_of_pi 1000000000) ]
is forbidden from calculating the billionth digit of pi. That's a pretty strict (play on words intended) kind of laziness, even if not the theoretically maximal definition.
What do you mean by that?
> (a + (b * c)) evaluates + then * instead of * then +.
AIUI,
is forbidden from calculating the billionth digit of pi. That's a pretty strict (play on words intended) kind of laziness, even if not the theoretically maximal definition.