[Haskell-beginners] Where/Let clauses and subexpression repetition/memoization

Tom Murphy amindfv at gmail.com
Fri Aug 19 18:43:13 CEST 2011


On Fri, Aug 19, 2011 at 2:52 AM, Daniel Fischer <
daniel.is.fischer at googlemail.com> wrote:

> [...] In most cases, you'll get recomputation,
> but GHC does a bit of CSE, so in some cases it will compute only once and
> share the result (which may be a bad thing - that's a further reason for
> not doing too much CSE, sometimes sharing has catastrophic results).
>
>
This is a beginner's list, so I'll ask: what catastrophic result could it
have, if it's computing pure functions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110819/74e7ca31/attachment.htm>


More information about the Beginners mailing list