And in Kotlin! Although Kotlin doesn't have a ternary operator.
It has the Elvis Operator ?: which behaves like C's ternary operator when you omit the middle value... So it's the same as C#'s coallessing operator (??) but it has a groovier syntax!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
And in Kotlin! Although Kotlin doesn't have a ternary operator.
It has the Elvis Operator
?:
which behaves like C's ternary operator when you omit the middle value... So it's the same as C#'s coallessing operator (??
) but it has a groovier syntax!