beacon-biosignals / StableHashTraits.jl

Compute hashes over any Julia object simply and reproducibly
MIT License
7 stars 1 forks source link

Support `OrderedDict` and `OrderedSet` #23

Open haberdashPI opened 1 year ago

haberdashPI commented 1 year ago

These two defy the expectation of the hash functions for Set and Dict objects. We should probably use https://github.com/cjdoris/PackageExtensionCompat.jl to implement a hash_method for these types that respects the ordering of elements.

haberdashPI commented 1 day ago

Alternative, wait until Julia 1.10 is LTS, and use the extension feature. Probably best to implement for StableHashTraits 2.0 in that case (thus 1.* can be compatible with ≥ 1.6 and 2.0 with 1.10 and onwards).