MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w49i01/ihatethispassiveagressivebehaviourruby/p7647n2/?context=3
r/ProgrammerHumor • u/Embarrassed_Death69 • 23h ago
276 comments sorted by
View all comments
0
But wtf is a "truthy" value? It doesn't make any sense nor mathematically nor programmatically
2 u/ReefNixon 22h ago What do you mean it doesn't make any sense programmatically? All 'truthy' means is that it evaluates as true in a conditional, truthy (and falsey) values are completely normal concepts in high level programming. 1 u/Key_Conversation5277 22h ago if(42) -> true What fucking sense does this make? A number is a number, not something to be coerced to a boolean. Thankfully Java doesn't have this nonsense 1 u/Unlikely-Bed-1133 22h ago Implicit casting is a thing that makes sense both programmatically and mathematically. You just prefer strongly typed languages.
2
What do you mean it doesn't make any sense programmatically? All 'truthy' means is that it evaluates as true in a conditional, truthy (and falsey) values are completely normal concepts in high level programming.
1 u/Key_Conversation5277 22h ago if(42) -> true What fucking sense does this make? A number is a number, not something to be coerced to a boolean. Thankfully Java doesn't have this nonsense 1 u/Unlikely-Bed-1133 22h ago Implicit casting is a thing that makes sense both programmatically and mathematically. You just prefer strongly typed languages.
1
if(42) -> true
What fucking sense does this make? A number is a number, not something to be coerced to a boolean. Thankfully Java doesn't have this nonsense
1 u/Unlikely-Bed-1133 22h ago Implicit casting is a thing that makes sense both programmatically and mathematically. You just prefer strongly typed languages.
Implicit casting is a thing that makes sense both programmatically and mathematically. You just prefer strongly typed languages.
0
u/Key_Conversation5277 22h ago
But wtf is a "truthy" value? It doesn't make any sense nor mathematically nor programmatically