|
|
|
|
|
by kailuowang
3680 days ago
|
|
I actually think type erasure might even be the right way to implement generics. You see, the point of static types is to provide compilation time check. That is, types are compilation time concern. So yeah, type erasure did introduce some inconvenience but if you need to access them during runtime, either you did it wrong or the compiler fails at some point. So, claiming type erasure making generic useless is a false argument. |
|