News for hackers. Stuff that matters.
Re:RuntimeExceptions – To try-catch or not to catch? by suresk on Saturday March 09, 2013 @04:48PM (#5349742)
The funny thing is, in almost any discussion about exception handling in Java, I hear the opposite complaint - too many APIs throw checked exceptions. I've been leaning more and more to liking it when APIs force consumers to at least be aware of known error conditions.

Scala's Option type is another example of this - I've watched people be sort of annoyed by it at first, but it tends to really improve the reliability and overall quality of the code when it is used properly.

Re:RuntimeExceptions – To try-catch or not to catch? by lucian1900 on Saturday March 09, 2013 @05:17PM (#5349815)
Scala's Option is a monad, so it's very easy to chain several actions and safely decide if they all succeeded or failed. It doesn't compare with checked exceptions at all.
Re:RuntimeExceptions – To try-catch or not to catch? by traxtech on Saturday March 09, 2013 @04:54PM (#5349759)
Reliability on prod is imho a big win for the less-sexy checked exceptions.