On Wed, Jan 23, 2019 at 1:30 PM Victor Giordano <vitucho3...@gmail.com> wrote:
> You wrote > > All nil values are perfectly defined: they are the zero value of the particular type. > > As i see things the nil is the default value for the pointers. If you want to call it "zero value" to the default is up to, for me doesn't work like that. For me "zero" (0) is a value and "nil" is another value. > > Hope you get what i'm saying. No I don't, sorry. Zero (0) is a number. Numbers (types int, intNN, float32, ...) cannot have a nil value. I don't understand how numbers got involved in this discussion about nil values. They're not related. But some types allow nil values (chan T, []T, ...). Nil values of such types are equal to the zero value of that type. So nil values are well defined. -- -j -- 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. For more options, visit https://groups.google.com/d/optout.