For the record:
In general, <=> is translated to the word "宇宙船演算子"; however, I didn't use this translation because if I employed this translation there are no counterpart for leg.
I think "三元演算子" is better than "宇宙船演算子" even if "三元演算子" is not commonly used translation because both <=> and leg are called "three-way operator" in English and they are consist of three operators each (i.e. <=> is consist of <, =, and >. leg is consist of lt, eq, and gt).
For the record: In general,
<=>
is translated to the word "宇宙船演算子"; however, I didn't use this translation because if I employed this translation there are no counterpart forleg
. I think "三元演算子" is better than "宇宙船演算子" even if "三元演算子" is not commonly used translation because both<=>
andleg
are called "three-way operator" in English and they are consist of three operators each (i.e.<=>
is consist of<
,=
, and>
.leg
is consist oflt
,eq
, andgt
).