Hacker News new | past | comments | ask | show | jobs | submit login

> So ... don't make panic part of your API, and don't recover from panics?

Don't recover from panic except at high level - retrying or failing that "scope" is ok, but don't try to do business logic around panicing or not (if you absolutely must, catch the panic at the lowest possible level and turn it into a result).




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

Search: