When @metaweta first suggested it, I missed that ?: does not subsume if-then-else since JavaScript is not an expression language. (Weird blind spot!) When the then-clause or else-clause needs to contain statements, then it cannot simply be included in the branches of a ?: since they must be expressions.
Having both is too non-minimal. Resolution: Omit ?:
When @metaweta first suggested it, I missed that ?: does not subsume if-then-else since JavaScript is not an expression language. (Weird blind spot!) When the then-clause or else-clause needs to contain statements, then it cannot simply be included in the branches of a ?: since they must be expressions.
Having both is too non-minimal. Resolution: Omit ?: