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.
In reply to Ternary operators
by pemungkah
in thread Ternary operator (there's no Trinary operator )
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |