You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposal language change for permitting signed shift counts would not break any working programs. This change, though, would. While there is a small benefit here, there is also a cost. Thanks, but this doesn't seem worth doing. If this is a problem in your program, it's straightforward to write a tiny wrapper that accepts int; that is not easy to do for the << or >> operators.
Considering #19113, perhaps it would be good idea to extend the usage of signed shift counts from machine integers to big.Ints (Lsh, Rsh) as well.
That is,
func (z *Int) Lsh(x *Int, n uint) *Int
→func (z *Int) Lsh(x *Int, n int) *Int
.The text was updated successfully, but these errors were encountered: