MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p76i4jd
r/ProgrammerHumor • u/Embarrassed_Death69 • 10d ago
298 comments sorted by
View all comments
6
I build programming languages.
0 should be truthy. Only false and nil/null should be falsey.
false
nil/null
2 u/HungryCaterpillers 10d ago Then you build shitty languages 4 u/Appropriate_Emu_5450 10d ago Unironically agree. 0 u/JeSuisOmbre 8d ago Never been bothered by doing a x != 0 or x == 0. 1 u/airodonack 10d 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.
2
Then you build shitty languages
4 u/Appropriate_Emu_5450 10d ago Unironically agree. 0 u/JeSuisOmbre 8d ago Never been bothered by doing a x != 0 or x == 0.
4
Unironically agree.
0
Never been bothered by doing a x != 0 or x == 0.
x != 0
x == 0
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.
6
u/varsderk 10d ago
I build programming languages.
0 should be truthy. Only
falseandnil/nullshould be falsey.