If Scala 3.1 adopts checked exceptions, I'm looking forward to the day when I can declare a library method as, def foo: Bar throws E without worrying whether my users care about exceptions or not. Right now I must return either `Bar` or `Try[Bar]` and make _someone_ compromise.
-
Show this thread
-
Replying to @propensive
interesting take, contrary to many opinions I've heard. Thanks for making it
1 reply 0 retweets 2 likes
Replying to @dermothaughey
I'd guess the other opinions are based on experience with checked exceptions in other languages, which Scala 3's approach acknowledges wholeheartedly, and attempts to fix. Or, I might speculate, from an overattachment to a monadic style... ;)
5:23 AM - 26 Mar 2021
0 replies
0 retweets
1 like
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.