> > I see it is a nice property, but I'd say only for people writing the > compiler. I adventure [sic] to say that people using the language won't > care too much about this property. Having a useful zero-value (in this > case, an initialized pointer), like we have with strings for example, > would be a very nice property for language users >
I think that Tristan was pointing out that nil *can *be a useful zero value, since you can still call methods on a nil struct, if the method was written to handle it. Likewise nil slices are pretty much as useful as empty slices, etc. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/eb261c09-845b-4b5a-86f2-ee7d57c03dd9%40googlegroups.com.