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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are some senarios that returning an error when FindXXXXX actually get noting is confusing:
Beta Was this translation helpful? Give feedback.
All reactions