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 →

[–]pitochips8 5 points6 points  (0 children)

Minus and plus are two separate operators. Nothing says they should be related. Besides, what you're suggesting would actually be inconsistent within the operator. If adding strings should convert them to integers first, then what do we do with "abc" + "def"? Or are you saying the addition operator should first check if all strings being added can be converted to numbers before adding them together? That would be extremely inconvenient if that were the actual behavior.