2 ms·
> Allow me to question the "almost" in "almost nothing". Java generics are famously unreified, at runtime it's exactly the same. On the other hand, decaying <T
by Twisol 6y ago
> Allow me to question the "almost" in "almost nothing". Java generics are famously unreified, at runtime it's exactly the same.
On the other hand, decaying <T> to Object (rather than monomorphizing as C++ templates do) somewhat reduces the viable attack surface for optimizations.
On the gripping hand, Java is traced/JITted, so it should pick up many of these opportunities (and more) anyway.