News for hackers. Stuff that matters.
Re:An 'in' operator for Ruby by nvader on Tuesday February 16, 2016 @03:31AM (#11108564)
It appears that since Ruby 1.9 they guarantee insertion order: http://ruby-doc.org/core-2.3.0/Hash.html

I guess there are two approaches to solving the problem of people using your data structures the wrong way.

Edit: wrong link

Re:An 'in' operator for Ruby by ghayes on Tuesday February 16, 2016 @04:42AM (#11108813)
As opposed to Go [0]

> When iterating over a map with a range loop, the iteration order is not specified and is not guaranteed to be the same from one iteration to the next. Since Go 1 the runtime randomizes map iteration order, as programmers relied on the stable iteration order of the previous implementation.

[0] https://blog.golang.org/go-maps-in-action