Rafa
07/19/2019, 9:31 PMAny reference in Java may be null, which makes Kotlin's requirements of strict null-safety impractical for objects coming from Java. Types of Java declarations are treated specially in Kotlin and called platform types. Null-checks are relaxed for such types, so that safety guarantees for them are the same as in Java
It seems as though it was a conscious decision to make the platform conform to Java. There are tradeoffs with all those choices, but curious as to why the reasoning was made to create the platform type instead of treating everything as nullable?Dominaezzz
07/19/2019, 9:50 PMRafa
07/19/2019, 10:36 PMitnoles
07/19/2019, 10:48 PM