ashishkrishnan
06/16/2018, 5:28 PMAny or Nothing type mapped at runtime?Shawn
06/16/2018, 5:30 PMShawn
06/16/2018, 5:31 PMAny roughly corresponds to Objectashishkrishnan
06/16/2018, 5:31 PMashishkrishnan
06/16/2018, 5:32 PMShawn
06/16/2018, 5:35 PMNothing turns into Ljava/lang/Void and Any turns into Ljava/lang/ObjectShawn
06/16/2018, 5:36 PMval any: Any = ""
val nothing = null
Tools -> Kotlin -> Show Kotlin Bytecodeashishkrishnan
06/16/2018, 5:40 PMAny brings to the language?Czar
06/16/2018, 5:44 PMAny vs Object, but it arguably sounds better than Object as a type.
Nothing on the other hand is a different fruit: https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html#translation-of-type-nothingShawn
06/16/2018, 5:46 PMCzar
06/16/2018, 5:47 PMCzar
06/16/2018, 5:47 PMashishkrishnan
06/16/2018, 5:48 PMCzar
06/16/2018, 5:48 PMCzar
06/16/2018, 5:49 PMashishkrishnan
06/16/2018, 5:49 PMashishkrishnan
06/16/2018, 5:49 PMCzar
06/16/2018, 5:53 PM