I use named tuples, the problem - it’s hard to make code typed properly and it’s slow.
Working with struct requires julia restart, so also not an option.
Is there a way to somehow update struct without restarting julia?
I use named tuples, the problem - it’s hard to make code typed properly and it’s slow.
Working with struct requires julia restart, so also not an option.
Is there a way to somehow update struct without restarting julia?
Yes, use Julia 1.12 and an in progress branch of Revise. See Revising structs: please test the upcoming Revise.
In addition ProtoStructs.jl is still an option. But if you can use the native 1.12 mechanism that should be preferred.