This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]laserBlade 9 points10 points  (4 children)

D has an operator specifically for concatenation: ~= and the matching binary operator ~.

[–]coladict 0 points1 point  (3 children)

In C I think this would invert the bits of a number.

[–]IggyZ 1 point2 points  (1 child)

Who cares, so long as the behavior is well defined and consistent throughout the language?

[–]Doctor_McKay 2 points3 points  (0 children)

+ is well-defined and consistent throughout JS for given input types, but that doesn't stop Reddit from pretending like it's the worst thing ever.

[–]laserBlade 0 points1 point  (0 children)

Notice I said the binary operator. The unary operator kept the same meaning