by creata · 5y ago · 0 comments
It is just a bad contract, as it is often misunderstood, and it allow for runtime errors that could easily have been caught at compile time.
I agree that non-nullable references are wonderful, and Go will probably have to grapple with that eventually. I just don't want people to get the wrong idea. Go has value types -- not everything is a reference that is implicitly nullable.
C isn't implicitly nullable, you are correct.
I agree that Go should consider adopting non-nullable references.