Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
weberc2
on Oct 29, 2016
|
parent
|
context
|
favorite
| on:
Sub-millisecond GC pauses in Go 1.8
Please feel free to enumerate them.
premium-concern
on Oct 29, 2016
[–]
(value, no error) (value, error) (no value, error) (no value, no error)
leaveyou
on Oct 29, 2016
|
parent
|
next
[–]
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.
bluejekyll
on Oct 29, 2016
|
root
|
parent
|
next
[–]
The fact that it's a convention, and not a compiler error is the entire issue at debate here.
weberc2
on Oct 29, 2016
|
parent
|
prev
[–]
There is no "no value" representation for int64. The only two cases are "<int64>, nil" or "<int64>, <error>".
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: