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

> Unfortunately many languages

Just Java (and Javascript by extension, as it was trying to copy Java at the time), really. You do have a point that Java programmers have infected other languages with their bad habits. For example, Ruby was staunchly in the "return errors as values and leave exception handling for exceptions" before Rails started attracting Java developers, but these days all bets are off. But the "purists" don't advocate for it.



Python as well. E.g. FileNotFoundError is an exception instead of a returned value.




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

Search: