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

1

u/[deleted] Mar 15 '22

But what if (bool? == true). It took me a hot minute to get used to this in kotlin

0

u/DaniilBSD Mar 15 '22

IMHO if you have == true, you either made a mistake or you are working with code written by someone who made a mistake

1

u/[deleted] Mar 16 '22

Or you're using kotlin, where it's standard practice with nullables