Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@sigfried --x first decrements x and then does shit with it in an expression. x-- first does shit with x and only afterwards decrements it.
-
taigrr8796yI wanted to upvote you but your current upvotes match your age so I can't bring myself to. Four more comments and those will match as well.
(hehe, /r/mildlythanos leaking here) -
@ewpratten you probably should check if daysToLive is already zero before decrementing it.
-
@electrineer otherwise, that would be about 11 million years to go, and that's just a 32 bit system. On the upside, most of that would be in retirement.
Related Rants
age++;
random
17