4 ms·
The point is in most languages operator overloading is no more complex than a method call. It's not exactly magic.
by sheepmullet 10y ago
The point is in most languages operator overloading is no more complex than a method call.
It's not exactly magic.
- nuggien 10y agoOverloading + could be magic if you want it to be. In go, + is exactly what you think it is. In languages with operator overloading, I literally could make + do whatever I wanted to.
- pjmlp 10y agoJust like you can make a function do something totally unrelated to how it is called, do what it is actually in the name, wipe out the hard drive, launch missiles, whatever.