Hacker News new | ask | show | jobs
by sheepmullet 3372 days ago
The point is in most languages operator overloading is no more complex than a method call.

It's not exactly magic.

1 comments

Overloading + 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.
Just 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.