# Isequal for composite types

**URL:** <https://discourse.julialang.org/t/isequal-for-composite-types/515>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 23, 2016, 6:36am UTC](https://discourse.julialang.org/t/isequal-for-composite-types/515 "2016-11-23T06:36:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 23, 2016, 6:36am UTC](https://discourse.julialang.org/t/isequal-for-composite-types/515/1 "2016-11-23T06:36:25Z")

</div>

Is there a library that helps define `isequal` recursively for composite types? The code is trivial, but I find I keep using it in many places, so it would be nice to either use an existing library, of if there is none, wrap it up myself.

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [November 23, 2016, 1:00pm UTC](https://discourse.julialang.org/t/isequal-for-composite-types/515/2 "2016-11-23T13:00:15Z")

</div>

> **[GitHub - JuliaServices/AutoHashEquals.jl: A Julia macro to add == and hash()...](https://github.com/JuliaServices/AutoHashEquals.jl)**
>
> A Julia macro to add == and hash() to composite types. - GitHub - JuliaServices/AutoHashEquals.jl: A Julia macro to add == and hash() to composite types.

Should also help to you not miss `hash`.
