Re:Compilers Are (Too) Smart
by cempaka on Sunday June 09, 2024 @02:30PM
(#40626445)
Heh that last part is interesting, Java had the same issue with people's programs relying on (not guaranteed by the spec) deterministic order in HashMap/HashSet iteration and breaking after a JDK upgrade. They similarly added randomization to the iterators on the immutable collections returned by Map.of() and Set.of(), even though they could otherwise be deterministic since those collections never resize.
[ Parent
| on HN ]
There are no comments on this comment yet.