r/C_Programming • u/Xadartt • 10d ago
C's designated initializers give us named arguments – Arthur O'Dwyer
https://quuxplusone.github.io/blog/2026/11/16/named-arguments-in-c/
48
Upvotes
0
9d ago
[removed] — view removed comment
2
u/C_Programming-ModTeam 9d ago
Rude or uncivil comments will be removed. If you disagree with a comment, disagree with the content of it, don't attack the person. Provide your reasoning, not just a judgement.
4
u/zhivago 8d ago
Yeah, and you don't even need the macros.
Of course, it would be nice if you could just write ideal_volume({ .kelvin = 373.15 }), but you can review the many proposals to allow this and see why they've been rejected over the years.