☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 个月前JavaScriptlemmy.mlexternal-linkmessage-square26fedilinkarrow-up1175arrow-down15cross-posted to: programmer_humor@programming.dev
arrow-up1170arrow-down1external-linkJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 个月前message-square26fedilinkcross-posted to: programmer_humor@programming.dev
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up21·4 个月前+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up2·4 个月前we 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.yup
we have a concept for that in brazilian portuguese. it’s called “gambiarra”.
Thanks for the explanation