590
if 1: return True (sh.itjust.works)
submitted 1 week ago* (last edited 1 week ago) by Ragdoll_X@sh.itjust.works to c/programmer_humor@programming.dev

Soy 0 got truthmogged by chad 1 ๐Ÿ˜Ž

you are viewing a single comment's thread
view the rest of the comments
[-] kubica@fedia.io 1 points 1 week ago

The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so...

[-] ZILtoid1991@lemmy.world 1 points 1 week ago

Because you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.

this post was submitted on 10 Feb 2026
590 points (96.5% liked)

Programmer Humor

29845 readers
394 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS