# Comparing Mutable Structs

**URL:** <https://discourse.julialang.org/t/comparing-mutable-structs/10944>\
**Category:** General Usage\
**Created:** [May 16, 2018, 11:12pm UTC](https://discourse.julialang.org/t/comparing-mutable-structs/10944 "2018-05-16T23:12:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [May 17, 2018, 3:25am UTC](https://discourse.julialang.org/t/comparing-mutable-structs/10944/5 "2018-05-17T03:25:10Z")

</div>

And note that if you do overload `Base.:(==)`, [you should also overload `Base.hash`](https://discourse.julialang.org/t/how-to-use-unique-function/5266) (except you should overload the two-argument version, as noted in [https://docs.julialang.org/en/stable/stdlib/base/#Base.hash](https://docs.julialang.org/en/stable/stdlib/base/#Base.hash)); see [https://docs.julialang.org/en/stable/stdlib/base/#Base.isequal-Tuple{Any,Any}](https://docs.julialang.org/en/stable/stdlib/base/#Base.isequal-Tuple%7BAny,Any%7D).

---

_[View the full topic](https://discourse.julialang.org/t/comparing-mutable-structs/10944)._
