3 ms·
The JVM didn't want to break compat to add generics into the runtime, hence they adopted the erasure model. Other language features are still quite doable on to
by MichaelGG 13y ago
The JVM didn't want to break compat to add generics into the runtime, hence they adopted the erasure model. Other language features are still quite doable on top of the JVM (as evidenced by plenty of more advanced languages targeting the JVM).
Yes, the CLR gets a major advantage by having a better bytecode language design, but it can't be the real reason Java didn't get lambdas until Java 8.