Re:The Java type system is broken
by mcculley on Thursday July 19, 2018 @04:10PM
(#17569817)
Those casts are still there. The compiler puts them in and the JVM has to execute them.
[ Parent
| on HN ]
Yes. And my point is they'd be there anyway, with or without generics. It's not "generics" making the JVM any slower.
If the types were reified, the compiler and the JVM would know what type was there. No cast would be needed.
Re:The Java type system is broken
by MaxBarraclough on Friday July 20, 2018 @04:39AM
(#17573390)
> they'd be there anyway
No. That's the point.