Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: