Re:Why is Python's OrderedDict ordered?
by not_kurt_godel on Tuesday November 04, 2025 @01:14AM
(#45807865)
Perhaps not unrelated to why Python is the #1 most popular language while Swift is #22 https://www.tiobe.com/tiobe-index/
Re:Why is Python's OrderedDict ordered?
by nielsbot on Tuesday November 04, 2025 @04:13AM
(#45808924)
Swift isn’t popular because its Dictionary type uses randomly ordered keys?
Re:Why is Python's OrderedDict ordered?
by cyanydeez on Tuesday November 04, 2025 @07:30AM
(#45810145)
Probably the inference is YAGNI
.
Re:Why is Python's OrderedDict ordered?
by not_kurt_godel on Tuesday November 04, 2025 @02:23PM
(#45814891)
It certainly could be a reason among many. Just look at the thread GP shared, containing multiple years' worth of users voicing frustration at the introduction of this behavior.
> In particular, random seeding enables better protection against (accidental or deliberate) hash-flooding attacks
https://forums.swift.org/t/psa-the-stdlib-now-uses-randomly-...