☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agoJavaScriptlemmy.mlexternal-linkmessage-square23fedilinkarrow-up11arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1external-linkJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 days agomessage-square23fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up0·4 days ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up0·3 days agowe have a concept for that in brazilian portuguese. it’s called “gambiarra”.
+
is overloaded for string concatenation, but-
isn’t so the interpreter coerces the “11” into a number first.we have a concept for that in brazilian portuguese. it’s called “gambiarra”.
yup