that's true

346 points · 14 comments · view on lemmy.world

14 Comments

rtxn@lemmy.world · 60 pts · 1y (5 replies)

That's not the truth. It's one of infinitely many truths. They hated him because Jesus didn't understand how implicit type casting between int and bool worked.

owsei@programming.dev · 15 pts · 1y (1 reply)

Lambda calculus gang has entered the chat with λx.λy.x as The Truth™

CanadaPlus@lemmy.sdf.org · 4 pts · 1y

I told them to leave a pamphlet and fuck off, but the pamphlet was a fixed-point combinator that put them back on my porch again.

Tanoh@lemmy.world · 5 pts · 1y (1 reply)

And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.

rtxn@lemmy.world · 7 pts · 1y

I don't find it confusing at all. The function doesn't test equivalence, and the return value is not meant to be a logical value.

Tja@programming.dev · 3 pts · 1y

if ((1 > 0) == 1)
printf("The OG truth\n");

DrDeadCrash@programming.dev · 19 pts · 1y

That's 'truthy'

AnotherPenguin@programming.dev · 14 pts · 1y

Does JeSus use javascript?

Lemmist@lemm.ee · 12 pts · 1y (2 replies)
[ removed ]
lugal@sopuli.xyz · 16 pts · 1y

If true:
. return big

palordrolap@fedia.io · 11 pts · 1y

Technically, if you ignore the inherent contradiction in the name, some languages treat NaN as a falsy number and the IEEE standards admit trillions of possible NaNs.

db2@lemmy.world · 12 pts · 1y (3 replies)

Indexes start at 3. 😈

Aurenkin@sh.itjust.works · 6 pts · 1y

No no..... negative three

hakunawazo@lemmy.world · 3 pts · 1y

His index started like -6 or -4 (assuming he even existed).

lefixxx@lemmy.world · 2 pts · 1y

I'll take it over 0, because it will force people to think with what arrays are populated. And if 1 index or 0index is appropriate instead of defaulting all arrays and loops at 0.