3 ms·
Meh, what if people rely on randomness. They should flip between random and ordered at random too.
by hombre_fatal 2y ago
Meh, what if people rely on randomness. They should flip between random and ordered at random too.
- therein 2y agoYeah, gotta keep the programmer on his toes. He needs to embrace non-determinism, and second guess everything. In case Go developer switches to a different language, we don't want to build bad habits. Map key iteration should be non-deterministically deterministic.
- ithkuil 2y agoWell, every once in a while the random order will look like it's ordered
- akira2501 2y ago> Meh, what if people rely on randomness. Then they are creating fragile software. They're always one language version upgrade away from disaster.
- deleted 2y ago[deleted]
- hombre_fatal 2y agoYes, but that criticism already applies to the original iteration order before Go introduces a performance penalty by intentionally randomizing order on every iteration just so people can't rely on it.