Null safety comparison operators
I usually need to compare nullable variables, and I know we have some ways to handle this kind of comparison:
Use functions in package <https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.comparisons/|kotlin.comparisons - Kotlin Programming Language (
kotlinlang.org)>
Use ?: with something like Int.MIN_VALUE, Int.MAX_VALUE, Long.MIN_VALUE, Long.MAX_VALUE for some limited data types.
However, I am not happy with these approaches. Or maybe I don’t know an...