News for hackers. Stuff that matters.
Re:Ask HN: Interesting (small) bits of C or C++ code by thomasbk on Friday October 12, 2012 @05:30PM (#4646934)
A little-known operator in C++, the "goes to"-operator:

int i=4;

while(i --> 0) { cout << i; }

Re:Ask HN: Interesting (small) bits of C or C++ code by dysoco on Friday October 12, 2012 @08:20PM (#4647429)
Actually that's just decrementing and comparing to 0: while((i--) > 0)