On Tuesday, 27 February 2018 at 15:30:44 UTC, JN wrote:
I'm no expert on programming language design, but I think there is a difference between templates and generics. At the basic level they are used for similar things - specializing container types, etc. But templates usually allow much more, so they end up being layers of layers of compile time code, e.g. D and Boost, which while nifty has it's compilation time cost.

Generic programming just means that you leave out the specification for some types in the code for later.

C++-style templates like D has is one solution to generic programming. When some people write «generics» they probably think of Java and something that is like that...

Reply via email to