in reply to Ternary operator (there's no Trinary operator )
The ternary operator, ?: has a binary value: one for true, another for false.
The binary operators <=> and cmp have ternary values: -1 (left less than right), 0 (arguments equal), and +1 (left greater than right).
That's really a lovely symmetry.
|
---|