Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What is the name of this operator: “--”?. Parent comment
The answer that shows it with the brackets is probably the clearest:
while ((x--) > 0) { ... }
So it checks if x is more than zero and then decrements it each loop iteration.
There are no comments on this comment yet.
The answer that shows it with the brackets is probably the clearest:
The compiler sees that as the same as (x--> 0)So it checks if x is more than zero and then decrements it each loop iteration.