Re:PyTorch 1.0 is out
by logicchains on Friday December 07, 2018 @08:16PM
(#18633194)
Sounds like operator overloading isn't the real problem here. An function equals(T rhs) -> bool that calls new and modifies member variables still sounds pretty terrible; changing "==" to "equals" doesn't fix the problem.
[ Parent
| on HN ]
The difference is in the time it takes to track down the aberrant behavior, and the learning opportunities available.
In the named case, it's obvious the other programmer may be doing something nefarious.
In the operator case, you learn much more, like how to grep, really work gdb, etc.