4 ms·
> Not really "just", of course For C++. Tons of languages do the type paramaterization and it solves more than 80% of the common problems. 80% of the remaining
by zamalek 8y ago
> Not really "just", of course
For C++. Tons of languages do the type paramaterization and it solves more than 80% of the common problems. 80% of the remaining 20% can probably be covered with compile-time code generation (or runtime code generation), for which templates aren't the only solution (D, C# and Lisp have different examples of how to solve this). The ultimate remainder of problems are likely really obscure, and are probably indicative of code smells (e.g. VectorF<3>).