Y
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
kodablah
3431 days ago
When interoperating with other libraries on the JVM you very easily can, which is a very common use case.
link
eropple
3429 days ago
You're right. Kotlin provides the null-or-throw operator (!!) to convert a Derp? into a Derp, though.
link