>
> A reason *not* to use '+' is that it would violate associativity
> in some cases, e.g.
>
> (path + "foo") + "bar"
>
> would not be the same as
>
> path + ("foo" + "bar")
>
I am missing something. Why not?
Because the result would be (respectively): path/foo/bar and path/foobar.In the second example the two strings would be concatenated and onlythen joined to the path.This is a very good argument against the + operator!