10 ms·
C++ templates are not the gold standard of generics. In fact, they are a glorified text substitution system, totally broken and flawed. Generics are still abso
by LessDmesg 7y ago
C++ templates are not the gold standard of generics. In fact, they are a glorified text substitution system, totally broken and flawed.
Generics are still absolutely necessary for ANY serious programming language. They are required by the DRY principle. Algorithms must not need be repeatedly implemented for every new data structure. To say that generics are astronaut is simply unprofessional.