r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

256 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.