4 ms·
Exception hierarchies are hard to get right. Java botched it too, making checked exceptions look bad. I like Go's use of a single error type in most public API
by skybrian 8y ago
Exception hierarchies are hard to get right. Java botched it too, making checked exceptions look bad.
I like Go's use of a single error type in most public API's. Combine with checked exceptions and you would have two kinds of functions: those that can fail and those that can't. It keeps the "what color is your function" problem to a minimum.
- pjmlp 8y agoJava checked exceptions are based on CLU, Modula-3 and C++ exceptions clauses. Naturally one just blames the one that actually got famous using them.