Is no returning double nil really a good idea? #71
zhouzilong2020
started this conversation in
General
Replies: 1 comment
|
You can return double nil. It's mostly a matter of preference. Originally, that's what I did but I found that it was easy to forget to check for double nil whereas checking for errors is very common in Go. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
There are some senarios that returning an error when FindXXXXX actually get noting is confusing:
All reactions