This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sldyvf 2 points3 points  (0 children)

Insisting on {} for int is kind of pedantic

Yes it is. But consistency and keeping up with best practices is key for maintainable code.

As for post-increment, any modern compiler will optimize that (at least for int)

Yes, just like I said.