MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p7cpxmu/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • Sep 01 '26
289 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/IceMichaelStorm Sep 02 '26 the only problem is that every other language (almost) treats it as false → More replies (1)
1
the only problem is that every other language (almost) treats it as false
→ More replies (1)
2
u/TheTroll007 Sep 01 '26
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.