DEV Community

Kotlin Reified Generics: Explained

Casey Brooks on January 16, 2019

Kotlin is a wonderful language full of many little goodies and surprises that make day-to-day development so much more pleasant. Most of its goodie...
Collapse
 
waterlink profile image
Alex Fedorov

Thank you! This is a fantastic explanation of reified generics and their main use case!

Collapse
 
matrixmike profile image
Mike Hewitt

So I tried a few of these examples - they are interesting in theory but they don't compile...

Collapse
 
rapasoft profile image
Pavol Rajzak

This is something I really miss in Java...

Collapse
 
matrixmike profile image
Mike Hewitt

This would be really useful if it had a working code snippet. I went elsewhere to find some simple sample and now I have a better idea.