4 ms·
> The truth is that one does not need generics. I write a lot of algorithms that can work with float, double, complex float, and complex double. Without gener
by civility 10y ago
> The truth is that one does not need generics.
I write a lot of algorithms that can work with float, double, complex float, and complex double. Without generics/templates (or a macro pre-processor), I have to cut and paste that code 4 times, or I have to sacrifice performance. Maybe I don't need templates, but I really really want them.