cm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agoJavaScriptlemmy.mlimagemessage-square43linkfedilinkarrow-up118arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up118arrow-down1imageJavaScriptlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square43linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarepalordrolap@fedia.iolinkfedilinkarrow-up0·3 days ago it commutes Maybe the behaviour with regard to type conversion, but not for the operation itself. “13”+12 and 12+“13” don’t yield the same result.
minus-squareraspberriesareyummy@lemmy.worldlinkfedilinkarrow-up1·3 days agoNor would I expect “1312” to equal “1213”… Still that operator with these operands should just throw an exception
Maybe the behaviour with regard to type conversion, but not for the operation itself.
“13”+12 and 12+“13” don’t yield the same result.
Nor would I expect “1312” to equal “1213”… Still that operator with these operands should just throw an exception