[Haskell-cafe] Re: Why?
deniz.a.m.dogan at gmail.com
Thu Dec 10 12:07:19 EST 2009
2009/12/10 Sebastian Sylvan <sebastian.sylvan at gmail.com>:
> I think laziness requires purity to make sense. Laziness implies that the
> order of evaluation is highly unpredictable and depends strongly on the
> implementation details of libraries and such (which you may not have access
> to). So it's fickle. Someone adds an if statement somewhere and all of a
> sudden a variable gets evaluated earlier than it used to. It would be
> madness to write any code which depends on this unpredictable behaviour. In
> other words, the expressions that get evaluated lazily must not have side
> Sebastian Sylvan
This unpredictability has bit me a few times when using LINQ (which is
awesome and has lazy evaluation) with C#.
More information about the Haskell-Cafe