|
|
|
|
|
by deathanatos
315 days ago
|
|
Intent enters into it when someone complains about something that is obviously out of the specification breaking. Prior that, yeah, that's just a bug. > This is why in Golang, for instance, when you iterate over map keys, it purposely does it in a random order It could be that Go's intentions are different here, but IIRC languages will mix randomization into hashtables as it is otherwise a security issue. (You typically know the hash function, usually, so without randomization you can force hash collisions & turn O(1) lookups into O(n).) |
|