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

Thanks for looking this up. I'm not just referring to blocs that just return the error, though even then your 154 occurrences lead to 462 lines of noise. Noise that could could be avoided with sugar like `?`. I'm referring to all the code blocks that start with `if err != nil {`. Wrapping and adding context could be done at the end of the previous function call and we wouldn't have to read boilerplate over and over.


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

Search: