3 ms·
Java specfic: Checked exceptions. http://literatejava.com/exceptions/checked-exceptions-javas-biggest-mistake/ http://literatejava.com/exceptions/checked-excep
by ipsocannibal 6y ago
Java specfic: Checked exceptions.
http://literatejava.com/exceptions/checked-exceptions-javas-biggest-mistake/ http://literatejava.com/exceptions/checked-exceptions-javas-...
- eyelidlessness 6y agoI don’t know. I’m personally partial to FP, but I tend to work in languages where it’s not the dominant paradigm, and where throwing exceptions is more idiomatic than say Either types. For those cases, checked exceptions are much nicer than having no error handling semantics in the type system. At least if you generally know what kinds of error cases are likely you can guard against them.
- blandflakes 6y agoDefinitely agree that I would like Either types far less if the language only tossed them token support (Java's Option comes to mind).