// Would run console.error with the Error object (alert(x) ?: console.error);
Shockingly, this is actually accepted by GCC's C dialect! And PHP! By the simple implementation expedient of making the second operand of the ternary operator optional.
[1] https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html#Conditi...
Shockingly, this is actually accepted by GCC's C dialect! And PHP! By the simple implementation expedient of making the second operand of the ternary operator optional.