"foo" + 6 + 6
>Should be a compiler-error.Why? "foo" is already a string, getting "foo66" from that makes perfect sense to me.
6 + "foo" though would be crazy.
Because it makes intent explicit in a way that helps catch errors earlier, and they are kinds of errors that real programmers actually make.
The problem isn't + string-concat, it's silently casting numerics into strings.
Should be a compiler-error.