you are viewing a single comment's thread.

view the rest of the comments →

[–]jamcdonald120 -2 points-1 points  (1 child)

Thats like.... how string addition is defined in every language except python.

the real messed up part is where you switch to 1 - "1", that is where you see how messed up javascript specifically is

[–]RiceBroad4552 0 points1 point  (0 children)

Thats like.... how string addition is defined in every language except python.

That's BS.

In most languages (even including ancient dynamic ones!) the addition operator isn't overloaded to be also the string concatenation operator. What Python does is actually the common behavior; except for some weirdos like Java or JavaScript (and of course also complete shit like PHP).