You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to omit default values in show() of structs that have defaults:
julia>@kwdefstruct S
a =1
b =2end
julia>@batteries S kwshow=true
julia>S()
S(a =1, b =2) # could be S()
julia>S(b=10)
S(a =1, b =10) # could be S(b = 10)
Especially useful for large structs, but nice even with only a couple of parameters.
The text was updated successfully, but these errors were encountered:
Hmm, yeah, unfortunately @kwdef doesn't provide a public way to access defaults. Only extracting them from the constructor signature... Or upgrading @kwdef :)
Would be nice to omit default values in show() of structs that have defaults:
Especially useful for large structs, but nice even with only a couple of parameters.
The text was updated successfully, but these errors were encountered: