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

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