OrderedCollections vs DataStructures

In OrderedCollections page, it says it was split from DataStructures without giving more detail. Which one should I use in which case?

If you need OrderedDict or OrderedSet, use OrderedCollections.jl, which contains those.


Agreed. These days DataStructures simply reexports OrderedDict and OrderedSet from OrderedCollections so functionally there’s no difference.

If you are using more functionality from DataStructures you may as well get everything from that package.

However, if you use only OrderedDict and/or OrderedSet, getting them from OrderedCollections has the advantage that it’s a smaller and more stable dependency, which helps a lot with keeping up to date with dependency compatibility.