I think that is the correct opinion.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Doesn't that trophy go to Go and its Panic?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
What’s your ideal look like in Scala?
-
I happen to have an answer which even talks about Java checked exceptions:https://speakerdeck.com/fanf42/systematic-error-management-we-ported-rudder-to-zio …
End of conversation
New conversation -
-
-
What is the point of *forcing* the user to handle the exception in a place down the call stack where maybe it is not yet appropriate to make a decision? And while on sum types, why just not return the sum type like Either<Left, ErrorSumType>
-
Declare it to be rethrown. Using Either is *fantastic* for errors that are relevant to the semantic domain - incorrect user input, serialization problems, etc - but call stacks are better for genuinely exceptional conditions.
- Show replies
New conversation -
-
-
I understand the motivation, but I think this is mainly a compromise due to the lack of better type propagation and execution contexts in our PLs.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I would agree, given a language that lets me declare "this function rethrows whatever its function parameters throws". Otherwise you get Java where you can't call `map` with any function that throws, which, at least in Java, ends up being most of them.
- Show replies
New conversation -
-
-
There are many problems with Java's checked exceptions and among those, the issue of sum types versus modeling inheritance hierarchies is a actually a minor one. And we don't have to guess. We can see how checked exceptions have been (mis)used in major Java projects.
-
More important problems: 1. error recovery doesn't happen often, "finally" is more important than "catch", checked exceptions make people ignore important errors in dangerous ways 2. error type is an encapsulation leak
- Show replies
New conversation -
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.