4 ms·
Reified generics are more of a problem than a solution for language creators. .NET generics are too weak to be the base for languages with really powerful type
by pkolaczk 9y ago
Reified generics are more of a problem than a solution for language creators. .NET generics are too weak to be the base for languages with really powerful type systems like Scala or Haskell. Therefore implementing Scala on .NET required to use erasure and turned out to be more complex than in Java, which supports erasure "natively".
- dtech 9y agoThey might make languages harder to implement, but on this point C# definitely wins over Java/Scala for programmers. I cringe a little when I need to write the occasional `def foo[T](list: List[T])(implicit tag: ClassTag[T])` in Scala.