3 ms·
Why they cannot add generics to C as first class citizen, so you don't have to abuse macros, preprocessing and other primitive techniques?
by tester756 11mo ago
Why they cannot add generics to C as first class citizen, so you don't have to abuse macros, preprocessing and other primitive techniques?
- xigoi 11mo agoBecause according to C programmers, generics are too “complex” (as opposed to preprocessor abuse, which is “simple”).
- uecker 11mo agoThere are too complex. And having suffered from endless hours debugging C++ template code in the past, I think C's macros are actually better - if done carefully.