Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
HL33tibCe7
46 days ago
|
parent
|
context
|
favorite
| on:
Go's Sweet 16
It returns the zero value for all types, including arrays (which is nil).
nil is equivalent to the empty array, which is why the rest of the code works as it does.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
nil is equivalent to the empty array, which is why the rest of the code works as it does.