Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They don't have it by design. The Java community has collectively decided it's a bad idea and they're discouraged even in Java.


No it didn't. And they're not discouraged in Java SE. Ignoring errors and letting them propagate to thread's main is just stupid. I haven't heard single argument except "Meh, I have to write throws Exception to every method". It's either "throws Exception" or something like "Either<Exception, String>". Same principle, you declare errors in type system. And if you have reason to believe that it's a good thing to hide errors from type system, then please, convince me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: