Nitpick Comparison Operator Family
1. Standard Comparison
==: Equality<: Less than>: Greater than<=: Less than or equal>=: Greater than or equal
2. The Spaceship Operator
(<=>)
Nitpick natively supports the three-way comparison
“spaceship” operator. * a <=> b Returns
int64 with a value of: * -1i64 if
a < b * 0i64 if
a == b * 1i64 if
a > b
3. The Ternary
Conditional (is)
Nitpick replaces the C-style cond ? a : b
syntax with the is keyword, utilizing explicit
parentheses around the condition.
int32:val = is (a > b) : a : b;