That’s what I would say, too.  If there is no legal way that it can be used, 
then it’s use must be illegal – hence fit for detection.

 

John

    John Souvestre - New Orleans LA

 

From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On 
Behalf Of Michael Jones
Sent: 2017 May 22, Mon 19:50
To: Ian Lance Taylor
Cc: oju...@gmail.com; golang-nuts
Subject: Re: [go-nuts] negative unsigned value?

 

 

On Mon, May 22, 2017 at 5:19 PM, Ian Lance Taylor <i...@golang.org> wrote:

Rejecting an unsigned comparison with zero would be a
language change.


yes, but it is not just a comparison with zero, it is a "is it less than zero, 
which it cannot possibly be since it is unsigned" so therefore it would be 
enforcing a rule than no correct program can violate. This is the kind of 
scenario under which other tweaks have gone in...



 

-- 

Michael T. Jones
michael.jo...@gmail.com

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

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