Hacker News new | ask | show | jobs
by andrewstuart2 2931 days ago
No, you have to use reflection to determine the type at runtime. Generics use the compiler to prove the type at compile time so that the runtime can forego the much-slower reflective code paths.