How YOU CAN DO MORE with the Elvis operator | Tips from the Kotlin team

Опубликовано: 28 Сентябрь 2024
на канале: Kotlin by JetBrains
15,090
812

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