D vs. C#
Ary Manzana
ary at esperanto.org.ar
Sun Oct 21 07:08:43 PDT 2007
Yigal Chripun escribió:
> What exactly is broken in Java that C# does better, in your opinion?
The only thing I don't like about Java is that generics are not true
generics. They are lost in runtime, the compiler erases the type before
compiling. So, for example:
class Zoo {
void foo(List<Dog> dogs) {
}
void foo(List<Cat> cats) {
}
}
won't compile, because the method "foo(List)" is duplicated. Also you
can't have generics of primitive types...
More information about the Digitalmars-d
mailing list