r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

8

u/production-values Mar 15 '22

without braces you return temp before the elses can ever run! Then even if grouped properly, your elses are superfluous because of returns above. But the math on bools ... chef's kiss