Re:Mono for Android released with Visual Studio 2010 integra...
by pmjordan on Wednesday April 06, 2011 @03:50PM
(#2416660)
Java has generics too.
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).
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.
Re:Mono for Android released with Visual Studio 2010 integra...
by viraptor on Wednesday April 06, 2011 @07:48PM
(#2417532)
They're just reusing existing API, which seems like an obvious step for a start. The features are there, so if you actually want to write your LINQ layer on top of whatever storage is available, you should be able to do so.
It's $400 to have your braces line up.