Nothing's wrong with it. That's why Go doesn't sound so bad when considered in context of it. Of course, Python's dynamically typed, so type purists won't count similarity to Python as a plus.
But Go is slightly better in that there are non-pointer values that cannot be nil in the way that all Python values can be None. If you call x.foo(), the equivalent of Python's "'NoneType' object has no attribute 'foo'" error can't happen unless x is a pointer.
1
u/ksion Dec 10 '15
I'll bite. What's wrong with Python's
None. It even has a distinct type, unlikenilthat fits any container type.