State of the Specialization: Generics over primitives in Java and JVM(cr.openjdk.java.net) |
State of the Specialization: Generics over primitives in Java and JVM(cr.openjdk.java.net) |
The only upside was that the existing collection classes could be "upgraded" to generics, rather than having to create a new set of collections classes. When faced with the same decision, C# went ahead and did just that - eliciting complaints from exactly no-one - and in return gained powerful and robust support for generics at the VM level. Contrast that with the contortions being proposed in the article just to try to extend Java generics to fundamental types.