News for hackers. Stuff that matters.
Re:Interrobang by azernik on Wednesday July 11, 2018 @06:47AM (#17505883)
You may know this, but others may not: this is an actual thing, and is called the Elvis Operator (think the hair). https://en.wikipedia.org/wiki/Elvis_operator

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.

There are no comments on this comment yet.