Re:We Switched from Python to Go
by jacobsenscott on Thursday October 27, 2022 @12:57AM
(#33353293)
I think the only time I used operator overloading was when I was a junior C++ programming trying to be clever - maybe 15 years ago.
[ Parent
| on HN ]
Re:We Switched from Python to Go
by zbobet2012 on Thursday October 27, 2022 @01:06AM
(#33353341)
Operator overloading is more or less banned in most style guides unless you're working with well known "math" types. And for good reason. I'd love anyone to tell me what the (^@?!) operator in Haskell's popular lens library does.
It's just... not a good feature for the most part.