https://kotlinlang.org logo
Title
p

pablisco

09/18/2018, 2:54 PM
Probably got the wrong place to ask this, but here it goes nothing. If Kotlin was designed without the JVM in mind would we have
nullables
and the `?
/
!!
/
?:` operators? i.e Is it safe to consider these as merely interoperability features? Specially given that there are safer ways to define default cases (with
sealed classes
for example)
r

Ruckus

09/18/2018, 3:55 PM
I think rust is a great example of that. There is no
null
in rust, just an
Option<T>
enum and some fancy null pointer optimization. https://stackoverflow.com/a/46557737
🤘 1