Remix.run Logo
zbentley 4 days ago

…yes, that is what I said people need to understand in operator-overloading-happy environments.

jcelerier 2 days ago | parent [-]

The problem is having the idea than an operator can only represent one thing while in math there's no such rule - people should start programming without the broken mindset that an operator only means one thing, and then things become much easier. Operators are functions, functions can be overloaded and come with default overloads for specific types: adding a special case makes it more complex.