☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agoJavaScriptlemmy.mlimagemessage-square13fedilinkarrow-up1110arrow-down11
arrow-up1109arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 month agomessage-square13fedilink
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up15·1 month ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up2·30 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.yup
we have a concept for that in brazilian portuguese. it’s called “gambiarra”.