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

> silently ignore the error instead of panicking?

Correct, with the minor note that it of course depends on your usage. If `res` is a pointer, any usage of it will panic because you ignored the err



Which means if you don't use that pointer for awhile you're going to have to do some backtracking to that ignored error


Which is why nobody writes that in production code; it's only used in examples and maybe tests




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

Search: