Reified type parameters in classes

This is in a way something that’s in the works for one of the future versions of Java (I’d expect it for Java 11, but may be a miracle occurs, and it will be Java 10), under the name of Project Valhalla. Reified generics are a lot harder on classes than on inline functions, because, well, classes are not inlined. When Java gets class specialization, Kotlin will get it too, of course. Before that —I’m not sure.

2 Likes