News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by pekim on Monday May 06, 2019 @09:01AM (#19838997)

   return a < b ? -1 : a > b ? 1 : 0;
That's a nice approach. However the document is about Go, and Go doesn't have a ternary operator. So that probably leaves the switch solution as the clearest one.

There are no comments on this comment yet.