Y
Hacker News
new
|
ask
|
show
|
jobs
by
weberc2
3517 days ago
Please feel free to enumerate them.
1 comments
premium-concern
3517 days ago
(value, no error) (value, error) (no value, error) (no value, no error)
link
leaveyou
3517 days ago
The convention is that if the err == nil then the value is not nil. The exceptions to this rule are very few and usually specified in the documentation. Normally you only have to check for error.
link
bluejekyll
3517 days ago
The fact that it's a convention, and not a compiler error is the entire issue at debate here.
link
weberc2
3517 days ago
There is no "no value" representation for int64. The only two cases are "<int64>, nil" or "<int64>, <error>".
link