[–] TheBuddha 0 points 1 point 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.
[–] WhiteMakesRight 1 point -1 points 0 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.
[–] 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.
[–] Rakosman 0 points 1 point 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.
[–] WhiteMakesRight ago
But they're different operators, with different semantics......
[–] Rakosman 1 point -1 points 0 points (+0|-1) ago
Yes, and?