[Haskell-cafe] Re: Why?

Sebastian Sylvan sebastian.sylvan at gmail.com
Thu Dec 10 11:56:09 EST 2009

On Thu, Dec 10, 2009 at 3:30 PM, John D. Earle <JohnDEarle at cox.net> wrote:

> My intuition says that laziness and purity are distinct whereas yours says
> that purity is a necessary condition. This is what needs to be reconciled.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091210/ce7ae284/attachment.html

More information about the Haskell-Cafe mailing list