r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

Post image
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

1

u/hardythedrummer Mar 16 '22

This is where yoda syntax is useful.

If (true == isCrazyMurderingRobot)

Will never result in an erroneous assignment.