And note that if you do overload Base.:(==)
, you should also overload Base.hash
(except you should overload the two-argument version, as noted in https://docs.julialang.org/en/stable/stdlib/base/#Base.hash); see https://docs.julialang.org/en/stable/stdlib/base/#Base.isequal-Tuple{Any,Any}.
1 Like