3 ms·
What are the problems with checked exceptions that don't apply to go's approach?
by lmm 13y ago
What are the problems with checked exceptions that don't apply to go's approach?
- gertef 13y agoChecked exceptions are harder to ignore :-) result, _ = someFunc()
- moe 13y agoHuh? try { result = someFunc() } catch {}
- sgk284 13y agoI have general issues exceptions. I've seen too many developers use exceptions in place of conditionals, and in the worst abuses, use exceptions as some hacked form of GOTO that lets them jump to different points of execution within their call stack. They're just a little too easy to abuse and are often used for non-exceptional cases. So while checked exceptions improve on exceptions, they are still exceptions at the end of the day.