MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p76i4jd/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 17h ago
262 comments sorted by
View all comments
8
I build programming languages.
0 should be truthy. Only false and nil/null should be falsey.
false
nil/null
2 u/airodonack 13h ago Agreed. This is the mathematical perspective versus the physical one about that’s bits. Also it makes “if number” make more sense. If you want the other one, well that’s why God invented “if number == 0” which is much clearer. 0 u/HungryCaterpillers 13h ago Then you build shitty languages 2 u/Appropriate_Emu_5450 11h ago Unironically agree.
2
Agreed. This is the mathematical perspective versus the physical one about that’s bits.
Also it makes “if number” make more sense. If you want the other one, well that’s why God invented “if number == 0” which is much clearer.
0
Then you build shitty languages
2 u/Appropriate_Emu_5450 11h ago Unironically agree.
Unironically agree.
8
u/varsderk 14h ago
I build programming languages.
0 should be truthy. Only
falseandnil/nullshould be falsey.