News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by unwind on Monday May 06, 2019 @11:06AM (#19840085)
I agree, but would go with:

    return a < b ? -1 : a > b;
This does the right thing, but removes the nested tertiary which to me is a big win.
Re:Clear is better than clever [pdf] by humblebee on Monday May 06, 2019 @11:21AM (#19840215)
What language? Those are different types.
Re:Clear is better than clever [pdf] by unwind on Monday May 06, 2019 @01:37PM (#19841791)
I assumed C, and both values are of type int so they match.