3 ms·
At runtime? None, it's a static (compile-time) feature, though the compiler does add some type assertions & casts automatically. Note that this is not necessar
by masklinn 9y ago
At runtime? None, it's a static (compile-time) feature, though the compiler does add some type assertions & casts automatically.
Note that this is not necessarily an issue for very statically-typed languages e.g. if I remember correctly GHC uses erased generics (they don't exist at runtime) which works fine because Haskell has neither pervasive RTTI nor specialisation, so the type erasure has ~no runtime visibility or impact.