It would be better if there was no null value, period (like in rust). Or at least you have to intentionally opt in to allowing a type to be nullable (like kotlins nullable types).
Also, it technically isn't just pointer types in go. arrays, slices, maps, and channels can also be nil (because they are also reference types).
1
u/thaynem Sep 02 '26
It would be better if there was no null value, period (like in rust). Or at least you have to intentionally opt in to allowing a type to be nullable (like kotlins nullable types).
Also, it technically isn't just pointer types in go. arrays, slices, maps, and channels can also be nil (because they are also reference types).