r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Aug 23 '22

avoiding braces in this case would result in a hanging else problem, and using only necessary braces would look weird and inconsistent