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

I think the poster was saying that java exceptions don't tend to force error handling to the same degree as the multiple-returns approach does.

"But it's a checked exception!" Like 90% of the code I've written in Java (and it's a lot) just says 'throws IOException' up top and moves on. Or, if that's not enough, we catch some dumb ones that shouldn't even be checked (URISyntaxException anyone) and wrap them with RuntimeExceptions. Effectively I've eliminated exceptions.



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

Search: