[ANN] SumTypes.jl v0.4

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

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.

1 Like

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!

2 Likes