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

If the function returns a useful value and an error then you'll have to assign to error to "_" to ignore it, which is a pretty big hint to the reviewer that it's being suppressed. So in cases where you want to "force" error checking, returning multiple values is probably good enough.



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

Search: