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

I don't really understand the place of panics. It's not really up to a function to determine whether its error is unrecoverable (especially in the case of a library), it's up to the caller. And an unhandled Exception is, practically speaking, a panic. So it seems to me that Exception covers both use cases.


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

Search: