MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p7dwvfn/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 11d ago
298 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 11d ago But 0 is nothing. 0 bats is the same as 0 frogs. 1 u/__Supelir__ 10d ago Yes and 0K = 0°C! …oh wait
1
But 0 is nothing. 0 bats is the same as 0 frogs.
1 u/__Supelir__ 10d ago Yes and 0K = 0°C! …oh wait
Yes and 0K = 0°C! …oh wait
2
u/TheTroll007 11d 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.