5 ms·
This is being considered for Go 2: https://github.com/golang/go/issues/19623 https://github.com/golang/go/issues/19623 Personally I'm wary of it: it's not hard
by nemo1618 4y ago
This is being considered for Go 2: https://github.com/golang/go/issues/19623 https://github.com/golang/go/issues/19623
Personally I'm wary of it: it's not hard to think of adversarial scenarios where this could lead to OOM. On the other hand, adversarially overflowing an int can cause plenty of havoc too...