Hacker News new | ask | show | jobs
by esarbe 3380 days ago
My argument is that while you use null assignment and nullability in Kotlin, in Scala you don't work with nulls.
1 comments

If your entire code base is in Kotlin, then nullability works exactly like Options. The difference is sugar. And the Kotlin compiler can handle null checks as well as the Scala compiler handles Options.

The problems arise when you interop with Java. At that point, shit can be null and you just don't know. My point is that it's the same problem in Scala as it is in Kotlin: Java interop adds a measure of unpredictability that needs to be handled at the touch points.

I agree on all these points.