Re:Polymorphic Types in C [pdf]
by lifthrasiir on Thursday January 18, 2024 @08:30AM
(#39041434)
_Bool etc. came with convenience macros defined from <stdbool.h> and so on, but _Generic never did, suggesting that the underscored version was meant to stay forever that way. (Otherwise it should have been named as something like _Generic_switch and later renamed to generic_switch...) Maybe _Type and _Var are similarily intended.
Re:Polymorphic Types in C [pdf]
by sigsev_251 on Thursday January 18, 2024 @10:59AM
(#39043347)
I mean, _Generic is usually hidden behind a macro anyways, so it doesn't really show up in you text file all that much.
You can't easily lowercase _Type and _Var, so practically speaking it will take years before these features could be suitable for wide-spread adoption. Hence my original comment - given the friction, is it worth expanding the language this way at all then?