2 ms·
C11 added _Generic as a way to write generic functions, for data structures people use the preprocessor to code-gen instantiations of generic code. Rob Pike ha
by Kranar 6y ago
C11 added _Generic as a way to write generic functions, for data structures people use the preprocessor to code-gen instantiations of generic code.
Rob Pike has nothing against generics and never expressed criticism of them. His concern was always fairly practical; among the numerous forms of generics that exist among different languages, and the significant variation and rapid evolution of them, how can such a feature be safely added to the language?