Generic programming: Difference between revisions

Content deleted Content added
Line 60:
==Generic programming features in other languages==
 
Templates were left out of some C++-based languages, such as [[Java programming language|Java]] and [[C Sharp programming language|C#]], largely due to the problems with templates in C++. These languages have adopted other methods of dealing with the same problems. However, both Java and C# areis currently adopting generic programming features comparable to templates.
 
Java supports generics as of J2SE 1.5.0. [http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html Generics In Java]
 
[[D programming language|D]] supports template programming as advanced as C++'s,
Line 66 ⟶ 68:
 
[[Ada programming language|Ada]]'s generics predate templates.
 
 
==Generic programming in Haskell==