I’m using reifier modifier but I’m still don’t und...
# android
r
I’m using reifier modifier but I’m still don’t understand how to use it, the following code basically execute the same, then what’s the purpose of reifier in Kotlin if both do the same:
Copy code
fun <T> otherExecute(input: T){
    if (input is String){
        println((input as String).length)
    }
}
with reified and inline
Copy code
inline fun <reified T> otherExecute(input: T){
    if (T::class == String::class){
        println((input as String).length)
    }
}