I want to initialise part of a Datatype in Julia, I currently have:
mutable struct Foo
bar::Int
baz::Int
maz::Int
Foo(maz=2)=new(maz)
end
foo=Foo()
println(foo)
However this creates an object which is Foo(2, 0, 0)
How do I do so that I get Foo(0, 0, 2)
Note: I would prefer to not have to do a complete initialisation