3 ms·
Checked exceptions are not well thought concept and I'm surprised that they were introduced in Java. Java seems to be pragmatic language adopting best practices
by vbezhenar 8y ago
Checked exceptions are not well thought concept and I'm surprised that they were introduced in Java. Java seems to be pragmatic language adopting best practices after they were fleshed out in other more experimental languages for decades. I consider checked exceptions to be semiofficially deprecated after they introduced java.io.UncheckedIOException in standard library. So it's like discussion is over, just use unchecked exceptions everywhere. Any sane library does that anyway.
- pjmlp 8y agoThey were following up on CLU, Modula-3 and C++ exceptions design, the predecessors that everyone forgets when complaining about them.
- projektfu 8y agoI don't know what Gosling's actual influences were, but when Java came out I was struck by its similarity in many respects to Modula-3. One convention I wish they had borrowed was modules instead of classes as the encapsulation technique, although I think many potential converts to the language would have found Modula-3's partial revelation of types to be confusing. We live in a wonderfully polyglot world these days. At the time Java was introduced, I felt like new programmers encouraged each other to pick sides. Were you going to use C? Pascal? C++? (Visual) Basic? Ada? Lisp? Your "choice" brought you praise from one camp and ridicule from another.
- cousin_it 8y agoJava started out as a fad language for smart devices, then pivoted into a fad language for applets, and only then adopted the image of a boring server-side language. You can see lots of weird stuff in Java's design, like the security model with classloaders, which is overengineered for server-side software but makes sense for smart devices and applets. So I'm not surprised to see experiments as part of Java.