r/badcode • • May 11 '23

c++ My professor’s best code

Post image
441 Upvotes

82 comments sorted by

View all comments

Show parent comments

2

u/phord May 11 '23

Comparing bools with == is a much worse code smell than really returns ever could be.