MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p76i4jd
r/ProgrammerHumor • u/Embarrassed_Death69 • 12h ago
252 comments sorted by
View all comments
7
I build programming languages.
0 should be truthy. Only false and nil/null should be falsey.
false
nil/null
0 u/HungryCaterpillers 9h ago Then you build shitty languages 2 u/Appropriate_Emu_5450 7h ago Unironically agree. 1 u/airodonack 8h 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
Then you build shitty languages
2 u/Appropriate_Emu_5450 7h ago Unironically agree.
2
Unironically agree.
1
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.
7
u/varsderk 10h ago
I build programming languages.
0 should be truthy. Only
falseandnil/nullshould be falsey.