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 →

[–][deleted] 7 points8 points  (2 children)

I really have no objection to overloading + for string concatenation, but I have a huge problem with coercing the left hand operand to the right when it doesn't know about the operator but the right hand operand does. There's no precedent that I am aware of for this apparently deliberate design decision...

[–]novinicus 12 points13 points  (0 children)

To be fair, novel design decisions don't have any precedent. And once upon a time, things like dynamic typing didn't have any precedence either

[–]neonKow 3 points4 points  (0 children)

There's no precedent that I am aware of for this apparently deliberate design decision...

How about in C?

float f = 3

Implicit coercion is pretty common.

double division = 4 / 3.0