4 ms·
After getting used to Python's dicts being ordered since 3.6, I really wish every language would do this. I think it is natural to think about the keys being ke
by nu11ptr 2y ago
After getting used to Python's dicts being ordered since 3.6, I really wish every language would do this. I think it is natural to think about the keys being kept in inserted order, and it is very handy a lot of the time. Rust's `indexmap` for example is nearly as performant if I recall as the stdlib `HashMap`, so it probably wouldn't be much in the way of overhead to do so. Regardless, every major lang should have an ordered map in the stdlib in my opinion.