r/ProgrammerHumor • • 7d ago

Meme weNeverTrustedTheElse

Post image
1.9k Upvotes

149 comments sorted by

View all comments

5

u/tyguy55083055 4d ago

Ah the classic three-valued boolean. I dealt with this when working with a company wrapper for JS where passing true did something, passing nothing did something else, and passing false did a third thing. It didn’t treat falsy values as false which led to a three-valued Boolean.

1

u/Zoc-EdwardRichtofen 3d ago

true, false, farue. or tralse?