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

It's used in the stdlib I think, you just need to recover the panics at your api boundaries.



Only for very specific use cases, like the recursive descent parser in encoding/json. It's not appropriate as a general pattern.


That was my understanding. You're just suppose to handle/return errors normally right?


Yup!




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: