4 ms·
The 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
by zeveb 8y ago
The 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.