Re:Go 1.18 Beta 1 is available, with generics
by inglor on Wednesday December 15, 2021 @10:11AM
(#29566976)
Are you sure you are not mixing up runtime impact with compiler speed? In Java generics are still part of the type system and are type checked which is a non trivial part of the compile time increase in generics typically.
What they sacrificed was runtime correctness, because the type erasure lets you sneak invalid types into unsuspecting code. How much of a problem that's caused in the real world is debatable.