47

Safe calls(?.) vs Null checks(!!) in Kotlin – Suneet Agrawal – Medium

 5 years ago
source link: https://medium.com/@agrawalsuneet/safe-calls-vs-null-checks-in-kotlin-f7c56623ab30
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
In Kotlin, the type system distinguishes between references that can hold null (nullable references) and those that can not (non-null references). For example, a normal property can’t hold a null…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK