4 ms·
> Putting error nil checks into a function is an anti-pattern in Go. What should you do instead?
by adrianmsmith 3y ago
> Putting error nil checks into a function is an anti-pattern in Go.
What should you do instead?
- Smaug123 3y agoYou may have misread this. The OP means "extracting error nil checks into a function is an anti-pattern", not "your functions should not contain error handling".
- adrianmsmith 3y agoI see, that makes more sense, thanks :)