Join Nostr
2026-01-03 01:42:11 UTC

typeswitch on Nostr: One thing i'd love to change in C is to support named arguments for functions, ...

One thing i'd love to change in C is to support named arguments for functions, whenever a function is declared with parameter names.

It's probably super cursed to implement in old compilers but I think most of the time it would be an unambiguous boon to the readability of client code. Also any time the wrong names are passed it would be an error, so it could catch some mistakes too.

C already has designated initializers for structs, this would be like expanding it to function arguments.