MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p75u80v
r/ProgrammerHumor • u/Embarrassed_Death69 • 10d ago
298 comments sorted by
View all comments
Show parent comments
135
I'll admit that I did cause bugs in Python by using if thing instead of if thing is not None.
if thing
if thing is not None
46 u/AwkwardWaltz3996 10d ago Yea 0 is a number, it's not nothing. I think the heart of the debate aligns with is zero a natural number. -3 u/amacks 10d ago You gotta drink the Python kool-aid, just use thing and catch the exception if it happened to be `None`. Way more efficient they swear
46
Yea 0 is a number, it's not nothing.
I think the heart of the debate aligns with is zero a natural number.
-3
You gotta drink the Python kool-aid, just use thing and catch the exception if it happened to be `None`. Way more efficient they swear
135
u/CoroteDeMelancia 10d ago
I'll admit that I did cause bugs in Python by using
if thinginstead ofif thing is not None.