Hacker News new | ask | show | jobs
by Const-me 2820 days 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.

1 comments

that’s why other people made Scala

I think you mean “the same people”, at least in the specific case of Martin Odersky. :)