r/badcode • • May 11 '23

c++ My professor’s best code

Post image
440 Upvotes

82 comments sorted by

View all comments

Show parent comment

2

u/phord May 11 '23

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