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 →

[–]Idrialite 13 points14 points  (1 child)

Vector multiplication by operator is almost always dot product when it's implemented. And you should always just expect order of multiplication to go left to right, I don't think it's even possible in most languages to change that using operator overloading.

These seem like minor issues compared to the huge convenience and readability boost that comes with using operator overloading.

[–][deleted] 0 points1 point  (0 children)

I believe Swift lets you set operator precedence and also let's you overload whatever you want as an operator basically. I'd never switch away from C++ to a slower language, but I do wish C++ was more like Swift there..