r/C_Programming • u/Xadartt • 4d 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
r/C_Programming • u/Xadartt • 4d ago
4
u/zhivago 2d 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.
0
u/[deleted] 3d ago
[removed] — view removed comment