Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Operator overloading can be bad when abused for non-numeric types. But for numeric types, it is indispensable.

It's not hard to remember that `__add__` is using extra resources when I'm working with big matrices in NumPy.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: