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

What's the difference between a nil map and a non-nil but empty map? You asked if the map had a value for your key, and it said no.


> What's the difference between a nil map and a non-nil but empty map?

A nil map is the absence of a map. An empty map is an empty map. The distinction is clear.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: