3 ms·
Thunk leaks happen, but they aren't that scary. They all pretty much have one of a handful of root causes. It's definitely a wart of laziness, but it's also pr
by whateveracct 7y ago
Thunk leaks happen, but they aren't that scary. They all pretty much have one of a handful of root causes.
It's definitely a wart of laziness, but it's also pretty easy to avoid.
As far as abtraction goes, laziness doesn't leak. In fact, it's a big reason Haskell performance composes. The head . sort example is contrived, but it holds true in more complicated & useful examples as well!