I think I’m with vincent, but understand the desire to gracefully and clearly handle the null case.

Before in Java the worry was that someone wouldn’t implement the null check and would crash the app, or they would implement a check but not handle a potentially valid null case. Today in Kotlin you actually get an optional back from an observer, making it clear in code when you have and haven’t checked for null, or when you’re missing an else block to your let.

Mobile developer and designer. Into the Jamstack. Read on at ajkueterman.dev

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