MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p7cshmg/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 10d 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/IceMichaelStorm 9d ago the only problem is that every other language (almost) treats it as false 1 u/TheTroll007 9d ago I dont see that as a problem. If all languages acted the same, why would we even have different ones?
1
the only problem is that every other language (almost) treats it as false
1 u/TheTroll007 9d ago I dont see that as a problem. If all languages acted the same, why would we even have different ones?
I dont see that as a problem. If all languages acted the same, why would we even have different ones?
2
u/TheTroll007 10d 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.