Hacker News new | past | comments | ask | show | jobs | submit
Oh I remember this from the classic SO post, but it was just presented as a funny trick. I never realized that it solves the issue mentioned in the article and there is a legitimate use-case for post-decrement in the comparison itself.

https://stackoverflow.com/questions/1642028/what-is-the-oper...

It's just spacing. X-- > 0 and X --> 0 are the same thing in C.
There is a reason postfix is the idiomatic way in C, it is the correct choice most of the time.
Swift (Lattner) was right, imo, to exclude both.
{"deleted":true,"id":50300318,"parent":50299718,"time":1793339639,"type":"comment"}