[Haskell-cafe] Question about memory usage
tako at codejive.org
Sat Aug 14 11:06:32 EDT 2010
I was reading this article:
And came to the part where it shows:
> fiblist = 0 : 1 : (zipWith (+) fiblist (tail fiblist))
Very interesting stuff for somebody who comes from an imperative world of
But then I read that "Once it's been referenced, then the list up to where
you looked is concrete - the computations *won't* be repeated."
and I started wondering how that works.
Because this seems to mean that functions could have unknown (to the caller)
How does one, programming in Haskell, keep that in check?
And when does that memory get reclaimed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe