Re:Go 1.11.5 and Go 1.10.8 are released
by Thorrez on Thursday January 24, 2019 @01:41AM
(#18986484)
Here's the new code:
I don't understand it why it's all necessary. This is shorter and seems to do the exact same thing:
Also, beta8 is never used after this code. So this should do the same thing as well:
[ Parent
| on HN ]
Re:Go 1.11.5 and Go 1.10.8 are released
by lifthrasiir on Thursday January 24, 2019 @01:49AM
(#18986518)
I think you are right. Go `big.Mod` should be Euclidean (i.e. `x % y` follows `y`'s sign) so the code is redundant. It doesn't seem to be required to run in constant time (if so we won't have `if` at all), probably the committer wanted a minimal change?