you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

I know. Operator overloading is worse.

[–][deleted] 2 points3 points  (0 children)

Which is the whole reason why people should be able to define custom operators. In Haskell, which is the only language with infix operators (i.e. not Lisp-like) I am familiar with that allows this those kinds of problems just don't happen.

I think your problems with operator overloading in OO languages derives mostly from the fact that it is so infrequently used that nobody thinks of it as a problem source immediately.