by still_grokking · 2y ago · 0 comments
That's why Scala introduces so called "capture checking" to make direct style effect systems safe.
https://docs.scala-lang.org/scala3/reference/experimental/cc...
To understand the problem better see:
https://www.inner-product.com/posts/direct-style-effects/#ca...
Well... yeah? It looks like readFile (a Task) is sufficiently thunk-like to guess that that's the case.
I program in this still regularly. What bad outcomes should I expect?