MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p77o5di
r/ProgrammerHumor • u/Embarrassed_Death69 • 18h ago
265 comments sorted by
View all comments
2
I mean 0 is not nothing, so you can do "if x" and if x is not false or nil, you get true. I kinda like this approach.
1 u/BobQuixote 10h ago But 0 is nothing. 0 bats is the same as 0 frogs. 2 u/Arxae 10h ago Not i a programming context. 0 is still a value. Even though the value might represent nothing, it's still a value. 1 u/TheTroll007 7h ago Even though there's no object, it's a different class. Nil is Nil class, 0 is Numeric. So it is something technically. 0 u/MinecraftPlayer799 8h ago Can everyone keep this comment at exactly 0 votes?
1
But 0 is nothing. 0 bats is the same as 0 frogs.
2 u/Arxae 10h ago Not i a programming context. 0 is still a value. Even though the value might represent nothing, it's still a value. 1 u/TheTroll007 7h ago Even though there's no object, it's a different class. Nil is Nil class, 0 is Numeric. So it is something technically. 0 u/MinecraftPlayer799 8h ago Can everyone keep this comment at exactly 0 votes?
Not i a programming context. 0 is still a value. Even though the value might represent nothing, it's still a value.
Even though there's no object, it's a different class. Nil is Nil class, 0 is Numeric. So it is something technically.
0
Can everyone keep this comment at exactly 0 votes?
2
u/TheTroll007 13h ago
I mean 0 is not nothing, so you can do "if x" and if x is not false or nil, you get true. I kinda like this approach.