News for hackers. Stuff that matters.
Re:Fantasy World OCaml (2013) by rwmj on Sunday August 03, 2014 @06:36AM (#8127598)
Checked exceptions are possibly the worst feature of Java.

Now it may be a good idea to have an optional tool for checking exceptions -- in fact, one exists already, but I can't recall the name of it. But please don't make this mandatory unless you avoid the mistakes of Java.

Re:Fantasy World OCaml (2013) by danieldk on Sunday August 03, 2014 @02:04PM (#8128629)
Checked exceptions are possibly the worst feature of Java.

Why? I absolutely hate C++ codebases where all of a sudden you get yet another type of exception that was not documented, possibly because the exception was thrown ten functions down (up) the stack.

In Java, at the very least you know what to expect and can prepare for it. Unfortunately, even there people try to avoid exceptions by throwing classes that derive from RuntimeException.

Given that Java has no sum types, checked exceptions are really the next best thing.