2 ms·
> C# generics are an (arguably improved) Java generics clone That depends on who you ask. My opinion is Java doesn’t have proper generics. In Java they’re jus
by Const-me 8y ago
> C# generics are an (arguably improved) Java generics clone
That depends on who you ask.
My opinion is Java doesn’t have proper generics. In Java they’re just language-level syntactic sugar.
Type system is broken i.e. type information is lost at compile time. This makes it hard to do functional-style programming in Java, that’s why other people made Scala.
Performance is broken too, generic containers box everything into objects causing huge performance penalty for containers with value types.
- iainmerrick 8y agothat’s why other people made Scala I think you mean “the same people”, at least in the specific case of Martin Odersky. :)