On Tuesday, February 27, 2024 at 3:42:25 PM UTC+8 Jan Mercl wrote:

On Tue, Feb 27, 2024 at 6:20 AM tapi...@gmail.com <tapi...@gmail.com> 
wrote: 

> From common sense, this is an obvious bug. But the spec is indeed not 
clear enough. 
> It doesn't state whether or not comparisons of pointers to two distinct 
zero-size variables should be consistent in a run session. 
> Though, from common sense, it should. 

"Pointers to distinct zero-size variables may or may not be equal." 

The outcome is specified to be not predictable. Expecting consistency 
means the outcome should be, or eventually become, predictable. That's 
the opposite of what the specs say. 


Then I would argue that the spec never guarantee (x != y) == ! (x == y).
for values of any types (including non-zero-size types). :D

-- 
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/4972f679-062b-4a4c-bf8e-31ab59d0147fn%40googlegroups.com.

Reply via email to