3 ms·
Go intentionally introduces randomness when reading maps so developers don't write code dependent on order.
by dsl 10y ago
Go intentionally introduces randomness when reading maps so developers don't write code dependent on order.
- cpeterso 10y agoIronically, some Go developers began depending on the randomized map ordering and were surprised when it changed! :) runtime: hashmap iterator start position not random enough #8688 https://github.com/golang/go/issues/8688 https://github.com/golang/go/issues/8688