Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
eropple
9y ago
0 comments
Save
Share
Nulls exist in Scala. You can return null for an Option[T].
Can't in Kotlin, though.
0 comments
2 comments · 1 top-level
top
newest
oldest
kodablah
9y ago
· 1 in thread
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