☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agoJavaScriptlemmy.mlimagemessage-square23linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageJavaScriptlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square23linkfedilink
minus-squarepropter_hog [any, any]@hexbear.netlinkfedilinkEnglisharrow-up0·2 months ago+ is overloaded for string concatenation, but - isn’t so the interpreter coerces the “11” into a number first.
minus-squarevfreire85@lemmy.mllinkfedilinkarrow-up0·2 months 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