Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
eropple
9y ago
0 comments
Share
Nulls exist in Scala. You can return null for an Option[T].
Can't in Kotlin, though.
0 comments
default
newest
oldest
kodablah
9y ago
When interoperating with other libraries on the JVM you very easily can, which is a very common use case.
eropple
OP
9y ago
You're right. Kotlin provides the null-or-throw operator (!!) to convert a Derp? into a Derp, though.
j
/
k
navigate · click thread line to collapse