0
1

[–] Rakosman 0 points 1 point (+1|-0) ago 

I prefer to always use the postfix operator. To me it is more important to have easy to read code than succinct code, and I also think the prefix one is uglier, so there's that.

0
0

[–] WhiteMakesRight ago 

But they're different operators, with different semantics......

1
-1

[–] Rakosman 1 point -1 points (+0|-1) ago 

Yes, and?

0
1

[–] TheBuddha 0 points 1 point (+1|-0) ago 

https://softwareengineering.stackexchange.com/questions/223313/style-guide-for-c

However, it's more important to be consistent. Whatever you go with, be consistent.

1
-1

[–] WhiteMakesRight 1 point -1 points (+0|-1) ago 

Consistency is irrelevant when you're talking about two different operators with different semantics though. Use the one you actually need.

0
0

[–] BitterBiped ago  (edited ago)

The post ++ is better than the pre ++. Because if it weren't Stroustrup would have called it ++C and not C++, kappa.