3 ms·
One thing to keep in mind is different Ruby implementations, versions, and platforms run differently. An array is currently the safest way to maintain order whe
by alttab 16y ago
One thing to keep in mind is different Ruby implementations, versions, and platforms run differently. An array is currently the safest way to maintain order when it matters.
If order didn't matter, than a hash would be fine, but iterating over the data could cause unwanted behavior if order is important and hash keys are served to an iterator in a different order than was laid out by the DSL code.