what i was trying to say was that you don't HAVE to have the result of an 
operator the same built-in type as the operatees, and that that might be 
useful.

it was also intended to show that they are more complex than usually 
understood. hence using the big type.

obviously uint's don't fit in int's, with the same number of bits, anyway.


On Friday, 17 March 2017 03:51:36 UTC, Nigel Tao wrote:
>
> On Fri, Mar 17, 2017 at 5:02 AM, 'simon place' via golang-nuts 
> <golan...@googlegroups.com <javascript:>> wrote: 
> > uint - uint = int 
>
> Well, if the first uint is maxUint and the second uint is minUint 
> (i.e. zero), then the difference between them will overflow an int. 
>

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