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

I don't get all the exception hate.

Exceptions are great when you are prototyping something. You will not have to bother about the very very very edge case. This is important when you have HOFs.

For robust production software though, you need something like result type or checked exceptions.



It's probably because too many of us have written too many prototypes that turn into production software


My problem with them is that they masquerade as a real error handling solution.

Rust's panic is better since it makes it clear that you are just completely giving up and that the scenario is not being handled.




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

Search: