4 ms·
> Why named named arguments test( a:4, b:3) instead of test(.a=4, b.=3); Why do you consider the second one better than the first (a:4, b:3)?
by pkphilip 2y ago
> Why named named arguments test( a:4, b:3) instead of test(.a=4, b.=3);
Why do you consider the second one better than the first (a:4, b:3)?
- lsllc 2y agoIt (the 2nd one) mirrors C's designated initializers for structures: struct foo f = { .bar = 1, .baz = 2, };