486
you are viewing a single comment's thread
view the rest of the comments
[-] Remavas@programming.dev 5 points 2 months ago

It's not true in a normal programming language. If it is true in yours, you should stop using it immediately.

[-] Valmond@lemmy.world 1 points 2 months ago

A non type should be a type. It should be of the type none. And it is in good script languages like Python so I don't know why you think it shouldn't.

[-] Remavas@programming.dev 1 points 2 months ago

They say a picture is worth a thousand words.

[-] Valmond@lemmy.world 1 points 2 months ago

That's a Numpy type, not a Python typesm, try a=None b=None a==b

[-] Remavas@programming.dev 1 points 2 months ago* (last edited 2 months ago)

That's not a type. A NaN is a floating point number (of type float). I used numpy because that's the easiest way to get a NaN.

This is part of the floating point standard.

This was never about None, which is a completely different thing.

this post was submitted on 17 May 2025
486 points (100.0% liked)

Programmer Humor

25324 readers
980 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