# \[ANN\] SumTypes.jl v0.4

**URL:** <https://discourse.julialang.org/t/ann-sumtypes-jl-v0-4/97038>\
**Category:** Package Announcements\
**Created:** [April 4, 2023, 12:26am UTC](https://discourse.julialang.org/t/ann-sumtypes-jl-v0-4/97038 "2023-04-04T00:26:22Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 10, 2023, 7:51pm UTC](https://discourse.julialang.org/t/ann-sumtypes-jl-v0-4/97038/21 "2023-04-10T19:51:02Z")

</div>

Hi,

I think that SumTypes.jl can be beneficial for our toy collision simulation tool: [Plot a circle with a given radius with Plots.jl - #8 by LaurentPlagne](https://discourse.julialang.org/t/plot-a-circle-with-a-given-radius-with-plots-jl/23295/8)

It is used in a lecture on Julia’s multiple dispatch and the performance is improved when we used only two different shapes (via unions) and less good when considering a vector of arbitrary shapes.

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [June 13, 2023, 4:13am UTC](https://discourse.julialang.org/t/ann-sumtypes-jl-v0-4/97038/22 "2023-06-13T04:13:49Z")

</div>

I’m refactoring ExpandNestedData to use SumTypes right now, and it’s rocking my world. Even if I get no performance gains out of it in the end, my code is SO much more readable and easy to reason about. Thank you so much!

[Previous page](https://discourse.julialang.org/t/ann-sumtypes-jl-v0-4/97038.md?page=1)
