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: [email protected] [mailto:[email protected]] On 
Behalf Of Michael Jones
Sent: 2017 May 22, Mon 19:50
To: Ian Lance Taylor
Cc: [email protected]; golang-nuts
Subject: Re: [go-nuts] negative unsigned value?

 

 

On Mon, May 22, 2017 at 5:19 PM, Ian Lance Taylor <[email protected]> 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
[email protected]

-- 
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 [email protected].
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to