News for hackers. Stuff that matters.
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
Re:We Switched from Python to Go by masklinn on Thursday October 27, 2022 @01:09AM (#33353360)
C++ making bad choices more or less universally impugns on operator overloading no more than on anything else.
Re:We Switched from Python to Go by boxed on Thursday October 27, 2022 @01:09AM (#33353363)
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++.