# Inserting new abstract type into existing hierarchy?

**URL:** <https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365>\
**Category:** General Usage\
**Tags:** question, design-pattern\
**Created:** [June 3, 2021, 11:19pm UTC](https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365 "2021-06-03T23:19:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![lamorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lamorton/32/21115_2.png) [@lamorton](https://discourse.julialang.org/u/lamorton)\
**Post date:** [June 4, 2021, 1:29am UTC](https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365/5 "2021-06-04T01:29:08Z")

</div>

I see. I didn’t intend to redefine the type, only to add new information about how the types relate. But, it looks like this is related to [the discussion about multiple inheritance](https://discourse.julialang.org/t/why-does-julia-not-support-multiple-traits/5278/44). I’m not actually interested in multiple inheritance in this case (turning the type tree into a type lattice), just in ‘stretching’ the existing type tree by interposing a new node that I can stick new branches onto. But, if one _were_ able to declare new supertypes after the fact, it would (in general) allow to create multiple inheritance, which is apparently a difficult feature to implement with multiple dispatch & hasn’t been done yet (might never be done). I’m curious if this simpler case would be easier to implement than the general case, but it’s probably not trivial either.

Thanks for the info about Holy traits. I think this probably good enough for what I am doing.

---

_[View the full topic](https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365)._
