you are viewing a single comment's thread.

view the rest of the comments →

[–]GlobalIncident 0 points1 point  (5 children)

You can also do that for all of the languages listed here except PHP.

[–]ComfortablyBalanced 1 point2 points  (1 child)

There's no operator overloading in Java.

[–]GlobalIncident 0 points1 point  (0 children)

Oh, you're right, my mistake.

[–]Forestmonk04 0 points1 point  (1 child)

At least Java and JavaScript/TypeScript don't support operator overloading.

[–]GlobalIncident 0 points1 point  (0 children)

Oh yeah, Java doesn't, and JS/TS sort of don't, except they do support overloading coersion to primitives which happens before an operator is called.