Could we give precedence to right associative operators

Could we give precedence to right associative operators, that would otherwise have the same precedence? So as this compiles:

4 +: Vector(5, 6) ++ Vector(7, 8)
         ^
       error: left- and right-associative operators with same precedence may not be mixed

I see no benefit to the status quo. As left associative operators are the norm and they are resolved from left to right, it makes sense to give right associative operator precedence. Then most collection building would just read naturally from left to right as one would intuitively expect.

3 Likes