The more I work with IO[A] in Scala, the more it makes sense to me that IO needs to propagate it's failure type in the type encoding, making it IO[E, A]. I want to know which failures may happen, I don't want it hidden from me.
-
Show this thread
-
Replying to @YuvalItzchakov @hmemcpy
I wrote Mitigation as a means of encoding all the possible exceptions as an intersection type in the signature. It worked, but I found it was more trouble than it was worth in practice.
2 replies 0 retweets 0 likes -
Replying to @propensive @hmemcpy
Why do you think it was more trouble than worth it? interested to hear.
1 reply 0 retweets 0 likes
Replying to @YuvalItzchakov @hmemcpy
There were a lot of type errors during maintenance when I introduced a new exception type into a computation. That ought to be a good thing, generally, but all those errors were handled in the same place, so the extra hard work fixing them was never actually useful...
2:46 PM - 25 Apr 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.