|
|
|
|
|
by masklinn
4082 days ago
|
|
There's a common misconception that erased generics are wrong. It's just that, a misconception: erased generics are just a bad fit for introspectable and runtime-heavy languages like Java. The GHC Haskell implementation also uses erased generics. |
|
I can understand it as a compromise for migration compatibility. I disagree with the goals of JSR14 - and history has shown that the concerns that lead to the migration compatibility constraint was non-issue.
Taken as an isolated type system where you want orthogonality and principle of least surprise (among others) it is not good design. And in that sense, yes, it is wrong