# How to join existing and new parametric types under a common abstract type?

**URL:** <https://discourse.julialang.org/t/how-to-join-existing-and-new-parametric-types-under-a-common-abstract-type/116714>\
**Category:** General Usage\
**Tags:** type, parametric-types\
**Created:** [July 7, 2024, 7:53am UTC](https://discourse.julialang.org/t/how-to-join-existing-and-new-parametric-types-under-a-common-abstract-type/116714 "2024-07-07T07:53:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [July 8, 2024, 12:49pm UTC](https://discourse.julialang.org/t/how-to-join-existing-and-new-parametric-types-under-a-common-abstract-type/116714/5 "2024-07-08T12:49:54Z")

</div>

Perhaps this would solve your problem:

> [@\[ANN\] DynamicSumTypes.jl v3](https://discourse.julialang.org/t/ann-dynamicsumtypes-jl-v3/116741):
>
> Hi all, I’d like to share with you that version 3 of [DynamicSumTypes.jl](https://github.com/JuliaDynamics/DynamicSumTypes.jl) is now out! The package allows to enclose multiple types into one with the @sumtype macro and it is almost like working with a Union of types, but with no dynamic dispatch, which can improve by a lot the performance of some programs requiring multiple types. Since it doesn’t require anything too special, an existing package based on multiple types should require a minimum amount of restructuring to be able to use it. The be…

You would still have to wrap your objects at the time of construction. But there would be no need to redefine methods.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-join-existing-and-new-parametric-types-under-a-common-abstract-type/116714)._
