After “import Parameters”, when use “with_kw” ,which is better?
Parameters.@with_kw or @Parameters.with_kw
I’ve only ever seen the first version used - I honestly thought the second form would be a syntax error until I tried it myself. Note that you can get most of the features of Parameters.@with_kw
with the built-in Base.@kwdef
macro.
6 Likes