Descriptiontext/template: allow comparison functions to work between any integers
Previously, signed and unsigned integers could not be compared, but
this has problems with things like comparing 'x' with a byte in a string.
Since signed and unsigned integers have a well-defined ordering,
even though their types are different, and since we already allow
comparison regardless of the size of the integers, why not allow it
regardless of the sign?
Integers only, a fine place to draw the line.
Fixes issue 7489.
Patch Set 1 #Patch Set 2 : diff -r 50ce4ec65c4acfa2ca72e62ea283e1d730f2d6f3 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|