[Haskell-cafe] Does the GHC GC handle const application?
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Tue May 31 07:20:30 UTC 2016
On Mon, May 30, 2016 at 08:13:41PM -0400, David Feuer wrote:
> If I create a thunk representing
> const x y
> will the garbage collector be sure to replace this with x?
Not until it's evaluated, no.
> I'm just wondering if I have to be concerned about the fact that
> Data.Sequence defines update in terms of adjust, with
> update x = adjust (const x)
Could you say more about your concern?
More information about the Haskell-Cafe