Sitting here writing some code on a parser, so while writing a counter I needed to write something like
if ... {
...
some_list.clear();
counter++;
continue;
}
But, do you think writing it this sort of way is nicer,
...
++ counter; // With a space after operator
continue;
}
The thought was, maybe if you have some code around this, it'll stand out more... I don't know. What do you think?
Suppose I should also get some design practises book along with the other two books I am getting next week.
view the rest of the comments →
[–] 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.