The requirement that diffId is Int means that I have to hash my input value, only to have it re-hashed when used internally as a dictionary key. I don't think it really adds much complexity to require instead that diffId is Hashable. I don't think it too likely to have to constrain the type in client code, in practice, so it shouldn't add much cognitive or code overhead.
The requirement that diffId is
Int
means that I have to hash my input value, only to have it re-hashed when used internally as a dictionary key. I don't think it really adds much complexity to require instead that diffId isHashable
. I don't think it too likely to have to constrain the type in client code, in practice, so it shouldn't add much cognitive or code overhead.This was already discussed in https://github.com/onmyway133/DeepDiff/pull/28/files#r259297434 but left as Int, for simplicity.