Re:C's designated initializers give us named arguments
by cesaref on Thursday November 19, 2026 @11:22AM
(#50562127)
I do wonder how many times setting the same member twice is a bug rather than a feature. I can imagine quite a bit of copy/paste leading to errors like this.
[ Parent
| on HN ]
Re:C's designated initializers give us named arguments
by astrobe_ on Thursday November 19, 2026 @01:22PM
(#50563915)
I also wonder what happens when you forget to give a mandatory parameter which has no default... Yes, that's why this has been possible for a long time but barely anyone uses it : it's a footgun.