I’m looking for something like
Parameters.@with_kw but which leaves unspecified arguments for mutables as
#undef, i.e. it should do,
@new_kwdef mutable struct Foo x = 1 y end Foo() # should return Foo(1, #undef) Foo(y=2) # should return Foo(1, 2)
Does anything like this already exist? Both of the aforementioned macros error on
y doesn’t have a default and isn’t defined.