2 ms·
The Haskell compiler is free to use in-place mutations, when it can prove that nobody can access the old object any longer. The language Clean supports this no
by eru 16y ago
The Haskell compiler is free to use in-place mutations, when it can prove that nobody can access the old object any longer.
The language Clean supports this notion explicitly in its type system (and uses it for IO, instead of, say, Monads like Haskell).