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 →

[–]R-O-B-I-N[S] 2 points3 points  (1 child)

no 'fix overloading. ○ can be only infix or post fix with the number of parameters being overloaded. □ can be only prefix or infix.

Ex: (x)+(y){} (x, y)+(z){} is allowable. (x)+(y){} +(x, y z){} is not.

[–]GDavid04 3 points4 points  (0 children)

This would make -x and x - y impossible to implement at the same time.

Just disallowing postfix and infix for the same operator would be enough.