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

> Not many people are fond of the idea of "validation by running a function and seeing if it throws an exception".

That's only because JS makes it unnecessarily verbose in the case where they don't care about the error message. It's exactly what they should want to do, rather than add another piece of the API to have to remember.



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

Search: