On Wednesday, 23 January 2019 13:31:13 UTC+1, Victor Giordano 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. 
>

The term "zero value" in regard to Go's types and values is
*not* subject to discussion, personal opinion or taste but
has a defined meaning: It is a specified technical term.
Please take some minutes and look it up in the language
spec.
The term "the zero value of type X" has a defined meaning
and must not be conflated with the integer literal 0.

If you want to discuss physics you have to stick your meaning
of "energy" or "momentum" to the official technical terms if
you want to be taken serious.

V.
 

>

-- 
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.

Reply via email to