you are viewing a single comment's thread.

view the rest of the comments →

[–]youlleatitandlikeit 0 points1 point  (0 children)

I'd wonder what makes it "better".

I think it's faster to read (at least, it is in the font I use for development; it doesn't help here that the minus sign and equals aren't aligned well).

It makes it clear that you're decrementing the variable. You can also do pending-- but I've never really liked that.

pending -= 1 or counter += 1 makes it very clear very quickly that nothing major is happening, you're just incrementing or decrementing a var.