MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p75wj7u
r/ProgrammerHumor • u/Embarrassed_Death69 • 17h ago
264 comments sorted by
View all comments
Show parent comments
2
Any value that causes an if statement to run its associated block, instead of going to else/doing nothing.
if
else
2 u/Nimeroni 17h ago His argument is that you should make your if statement explicit. 2 u/Key_Conversation5277 16h ago Yes 1 u/deceze 17h ago Ah, my bad. if (thing is truthy) { print('Yeah, much better'); } 1 u/rosuav 15h ago I'd venture to guess that everyone who whines that truthiness should be replaced with explicit comparisons has never programmed in REXX, and probably won't even understand why I'm making that reference.
His argument is that you should make your if statement explicit.
2 u/Key_Conversation5277 16h ago Yes 1 u/deceze 17h ago Ah, my bad. if (thing is truthy) { print('Yeah, much better'); } 1 u/rosuav 15h ago I'd venture to guess that everyone who whines that truthiness should be replaced with explicit comparisons has never programmed in REXX, and probably won't even understand why I'm making that reference.
Yes
1
Ah, my bad.
if (thing is truthy) { print('Yeah, much better'); }
I'd venture to guess that everyone who whines that truthiness should be replaced with explicit comparisons has never programmed in REXX, and probably won't even understand why I'm making that reference.
2
u/deceze 17h ago
Any value that causes an
ifstatement to run its associated block, instead of going toelse/doing nothing.