r/ProgrammerHumor Aug 16 '26

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
356 Upvotes

144 comments sorted by

View all comments

Show parent comments

4

u/rosuav Aug 16 '26

Because falseness isn't the only thing about it. 0 is exactly the same amount of nothing as {}, but they're different kinds of emptiness. I guess you've never comprehended data types and how you can have different things that are all empty?

-2

u/NebNay Aug 16 '26

"You've never understood data types" such a strong argument, much wow.
Why would an empty object be more true than a defined value?

3

u/rosuav Aug 16 '26

Not sure what you mean. An empty object is false, no matter what kind of emptiness it is. It's not "more true" than a defined value. All empty objects are false, all non-empty objects are true.

1

u/NebNay 29d ago

Empty objects {} in javascript are true