3 ms·
I was reading something a while ago (can't find it now, unfortunately) that suggested that the use of type erasure for generics actually opens up the JVM to be
by kelnos 8y ago
I was reading something a while ago (can't find it now, unfortunately) that suggested that the use of type erasure for generics actually opens up the JVM to be able to do some useful things that (for example) the CLR can't do. One thing I recall was that the Scala developers gave up on their CLR/.NET backend.
I also read, more generally, that adding reified generics to the JVM might make it hard or impossible to implement some dynamic languages on top of the JVM.
So yes, erasure has its drawbacks, but it's not all bad.
- chrisseaton 8y agoYes I've heard this from multiple people targeting new languages to the JVM. Maybe it's why the JVM has a larger ecosystem of new languages?
- hyperpape 8y agoOne source: https://olabini.com/blog/2010/07/questioning-the-reality-of-generics/ https://olabini.com/blog/2010/07/questioning-the-reality-of-...