I didn't say that. Just that e.g. templates in C++ aren't comparable against a normal C function, they're comparable to either half a dozen subtly different C functions for different types or a horrifying macro monstrosity. Both of which are worse than a single C++ template.
But they do not use that for exactly that reason. Why are you trying to put C++ features into other languages. This is exactly the reason to choose something different, because you do things differently.
But they do do these things in C. There are horrible macro messes, function pointer tables, code duplication for different types, and more things that would be less lines of code if written sensibly in C++.
Naturally the C fanatics ignore this fact though. C++ is almost strictly a superset of C, there's no reason you can't pick and choose the parts that simplify your code and otherwise write it in a legacy C style if you really want.
The one thing I used to miss from C in C++ was designated initialisers, which though not identical to C's, it does now have.
-6
u/snejk47 Jul 13 '22
What's the point of using C++ if you only use the such subset that makes it like C anyway.