The Elvis operator is a great tool for handling nullability. It can be used to provide a default non-null value instead of a given expression when this expression is null. In this episode of Kotlin Tips, Sebastian will show how to add some more logic, for example, logging, to the right part of the Elvis operator.
More Kotlin Tips episodes: • Kotlin Tips 2023
#KotlinTips #Kotlin #Elvis #ElvisOperator