1 min readFeb 4, 2018
You are correct, ‘?:’ is the ternary operator. In the C language, when the expression between the ‘?’ And the ‘:’ is omitted, it uses the conditional.
The following are equivalent:
a ? a : b
a ?: b
It’s similar in behavior to Swift’s “nil coalescing”
Optional_A ?? NonOptionalFallback