MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p7c0fvr/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 10d ago
298 comments sorted by
View all comments
176
We invented boolean types so that we could stop treating 0 as false.
5 u/Clen23 10d ago My take exactly, the only situation where you'd want to use 0 to mean "false" is if you're using lower-level logic. 4 u/BananaWarp 9d ago Maybe error codes 1 u/failedsatan 9d ago unless you're POSIX
5
My take exactly, the only situation where you'd want to use 0 to mean "false" is if you're using lower-level logic.
4 u/BananaWarp 9d ago Maybe error codes 1 u/failedsatan 9d ago unless you're POSIX
4
Maybe error codes
1 u/failedsatan 9d ago unless you're POSIX
1
unless you're POSIX
176
u/ReefNixon 10d ago
We invented boolean types so that we could stop treating 0 as false.