You must log in or register to comment.
One can tell you’re a quality poster for putting a reference to a freaking programming meme. It is an overkill, but a quality overkill.
if (a < b) { return true; } else if (b < a) { return false; } else { return "A == B, bro" }
That doesn’t work if either one is NaN
Why is there no space in front of the ?. At first I didn’t even realize that this was supposed to be the ternary operator.
Meanwhile, in the background the compiler optimizes them all to the same result anyway. :P