|
|
|
|
|
by kssreeram
5811 days ago
|
|
> Generic programming is something you can do in any language, ... That's not true. Generic Programming is about writing re-usable code that is also very efficient. On the whole, it requires the following: - Static types - Overloading - Type-parametric functions (templates) - Type specialization. Not all languages have these features. Generic programming first took off with C++, when it introduced templates. But a few languages before and after C++ have supported generic programming: Ada, Haskell, D, etc. edit: formatting. |
|
It's a bit like saying you can't write functional code unless you use a functional language.