Re:Type erasure and reification
by slavapestov on Wednesday December 05, 2018 @10:32PM
(#18615140)
> This is another of those unfortunate implications of Java's having disappeared into this ugly chasm between static and dynamic typing. It doesn't fully erase types, so you can't do like C++ or Haskell do and just generate a completely different type, because it wouldn't be compatible with any functions that work with the generic type.
Full monomorphisation is not compatible with separate compilation though.
Full monomorphisation is not compatible with separate compilation though.