3 ms·
We don’t need a ternary operator
- zeveb 8y agoThe ternary operator is a hack due to C distinguishing between statements & expressions. A better language would just use if: (setf thing (if (< a b) foo bar)) The above sets THING to FOO if A is less than B, otherwise it sets THING to BAR.