Re:Mono for Android released with Visual Studio 2010 integra...
by InclinedPlane on Wednesday April 06, 2011 @08:09PM
(#2417603)
Yeah, Java doesn't really have generics. Java has syntactic sugar which provides a good portion of the benefit of generics. But type erasure is not the same thing as generics.
Re:Mono for Android released with Visual Studio 2010 integra...
by pmjordan on Thursday April 07, 2011 @05:52AM
(#2418898)
Indeed. Unfortunately, that didn't stop them from calling them generics. This choice also pretty much blew the chance of properly integrating true generics into the type system later for backwards compatibility reasons. Well, there's always Scala I suppose.
Yeah, unfortunately they're implemented via type erasure, unlike in C#, where they're actually part of the type system (for example, since C# 4.0 generics can be covariant and/or contravariant on the type parameters).