Type Interface


#1

I am new to Kotlin. I would like to know, How Kotlin finds data type without specifying it explicitly by using type interface. How does Type interface works internally in Kotlin


#2

Not sure that it is possible to decipher what you actually trying to ask from this description. Could you provide a code or at least class reference for the thing you are asking about?


#3

If u refer this link https://code.tutsplus.com/tutorials/kotlin-from-scratch-variables-basic-types-arrays-type-inference-and-comments--cms-29328, there is something called TypeInterface in Kotlin. I m quite inquisitive over the underlying working of TypeInterface. How they are able to find the datatype implicity using Typeinterface?.


#4

Did you read the basics? If you did, do you actually want to know how it is implemented in code?