Hacker News new | ask | show | jobs
by eropple 3431 days ago
Nulls exist in Scala. You can return null for an Option[T].

Can't in Kotlin, though.

1 comments

When interoperating with other libraries on the JVM you very easily can, which is a very common use case.
You're right. Kotlin provides the null-or-throw operator (!!) to convert a Derp? into a Derp, though.