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

The situation is actually a bit more nuanced in Go; an idiomatic Go library may use panic/recover internally as a means of error handling, but is supposed to convert any panics to error codes for external consumption (IOW, panics should not be a part of any public API). You can see this pattern endorsed in this blog post: https://blog.golang.org/defer-panic-and-recover .



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

Search: