Why is it useful for maps to be sorted by insertion order?
Python 3.8 Makes me Sad Again
11–20 of 48 posts
Re: Python 3.8 Makes me Sad Again
#12Why is it useful for maps to be sorted by insertion order?
Re: Python 3.8 Makes me Sad Again
#13Re: Python 3.8 Makes me Sad Again
#14Meh another shit-post for some clout.
Disagreement with post doesn’t make it shit. Diversity of opinions is great. But calling the post shit instead of providing any arguments definitely does not make a constructive helpful discussion. Such comments are just noise.
Like this: https://en.m.wikipedia.org/wiki/Shitposting
Re: Python 3.8 Makes me Sad Again
#15Why is it useful for maps to be sorted by insertion order?
Re: Python 3.8 Makes me Sad Again
#16 “Somebody” ignored the wisdom of Lisp, which was
“everything is an expression and evaluates to a value”
(no statements vs expressions), and made assignment a
statement in Python years ago.
This was the philosophy of Algol. That is why ":=" was invented there. From Lex Fridman interview I understood that Guido was not educated enough to understand some issues, and tried to fix them afterwards. :-)Re: Python 3.8 Makes me Sad Again
#17Why is it useful for maps to be sorted by insertion order?
It makes execution reproducible.
Golang starts iterations in a random position each run to prevent people from relying on the ordering.
Re: Python 3.8 Makes me Sad Again
#18I wish more programmers that work outside of the tech industry would contribute to these discussions.
Re: Python 3.8 Makes me Sad Again
#19Earlier quoted context omitted.
Disagreement with post doesn’t make it shit. Diversity of opinions is great. But calling the post shit instead of providing any arguments definitely does not make a constructive helpful discussion. Such comments are just noise.
I think parent is using “shit-post” to describe a negative post. Like this: https://en.m.wikipedia.org/wiki/Shitposting
Thank you for the link though.
Re: Python 3.8 Makes me Sad Again
#20Earlier quoted context omitted.
It makes execution reproducible.
Almost any hash table implementation will give the same iteration order for the same sequence of insertions and deletions across program executions. So this would already be true even if the order was not the insertion order. Golang starts iterations in a random position each run to prevent people from relying on the ordering.