i entertained KClass at one point and couldn't find the static instances forName, instanceOf, etc. maybe it's there but it seemed easier to just use Class<>
m
Matteo Mirk
12/28/2019, 3:50 PM
maybe seems easier coming from Java, but when you need to code only in Kotlin it gets annoying to use
.java
or
.javaClass
all the time. Moreover KClass can provide you with all sort of K-specific introspection (as well as the