Re:We Switched from Python to Go
by dilyevsky on Thursday October 27, 2022 @12:25AM
(#33353089)
It’s hard to design good operator overloading. In c++ it’s difficult to do correctly to the point of being considered an antipattern in many shops
[ Parent
| on HN ]
C++ making bad choices more or less universally impugns on operator overloading no more than on anything else.
It's all about culture. I learned that operator overloading is evil when I worked in C++. Then I worked in python and it's actually fine. Python has much more powerful overloading capabilities (you can overload a LOT more), and yet it's not a total mess like in C++.