2 ms·
> The problem is that, without type information, it would be too fragile, so I decided to leave it out. typeof() is being considered for ISO C2x and has been a
by eqvinox 5y ago
> The problem is that, without type information, it would be too fragile, so I decided to leave it out.
typeof() is being considered for ISO C2x and has been around for ages in GCC/clang. _Generic is already in C11. With a struct member iterator, these 2 could/should be useful to branch out into type specific handling for each field.
Admittedly those are somewhat limited, particularly when working with typedefs, but that's a bit of a fundamental problem in C :(