Have the features mentioned by @mauro3 at the thread at-kwdef support for parametric types and subtypes by simonbyrne · Pull Request #29316 · JuliaLang/julia · GitHub been merged to Base.@kwdef? I list them here for convenience as well:
Four bits which are “missing” are:
- allow
@assert
s in the type body which then get included in the positional inner constructor.- different
show
method.- type-specific unpack macros
- automatic documentation of the type-fields with their defaults
I don’t think the first three are suitable for Base. The last would be nice though, but maybe for another PR.