Redefining structs without restart?

Same here.
I wish you could redefine structures. The only workaround I know of is putting it inside a module:

module Data
    mutable struct MyStruct
        x::Int
    end
end
1 Like