Adding Optional to Java does not fix its null problem in any way. In Java null enhabits even an Optional<String>, which is a mistake I’m writing about. For languages that do not have this null problem adding Optional type makes sense, especially when they combine it with a special T? syntax, which makes sense, because it is commonly used.

Written by

Project Lead for the Kotlin Programming Language @JetBrains

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store