r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

Post image
4.9k Upvotes

256 comments sorted by

View all comments

Show parent comments

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