News for hackers. Stuff that matters.
Re:Go 1.12 Released by kbd on Tuesday February 26, 2019 @03:41AM (#19252855)
> "The order-preserving aspect of this new implementation is considered an implementation detail and should not be relied upon"

Except it worked so well in Python and PyPy that in Python 3.7 it was blessed into an official part of the language spec.

Re:Go 1.12 Released by ATsch on Tuesday February 26, 2019 @07:56AM (#19253848)
I wonder if this isn't going to be seen as a mistake in the future. What if a faster map is discovered in 3 years that happens to not preserve order? This stuff is really hard to detect, so there's no going back on it.
Re:Go 1.12 Released by dagmx on Tuesday February 26, 2019 @09:24AM (#19254495)
That was likely weighed and I'm guessing the answer is that they would introduce a new type under collections, but that the new dictionary makes most sense for users while also currently being faster
Re:Go 1.12 Released by Kihashi on Tuesday February 26, 2019 @09:16AM (#19254436)
In Python, they'd probably just make it a separate class, just like `OrderedDict` is/was. People who needed the performance would use it and everyone else would enjoy the convenience of ordering.