I was trying to find more details about this decision in the Kotlin documentation but there is no section that "talks" about it. Does anyone know what drove the decision to use the "Kt" suffix in class names in Kotlin? Is it to avoid collision with Java class names, or is there more to it?
Unlike Java, Kotlin allows you to define functions that are not inside a class. But if you want Java to talk to Kotlin that becomes a problem. How to solve it? Convert those functions into static methods of a class named as the file with the "Kt" suffix
You can find more info about that in the documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With