3 ms·
But this article is just explaining operator overloading, right? Doesn't everyone learn that halfway through semester in C++ 101? And operator overloading has
by sbjs 8y ago
But this article is just explaining operator overloading, right? Doesn't everyone learn that halfway through semester in C++ 101?
And operator overloading has nothing to do with DRY, in fact it's generally better to avoid it except for in very niche situations, like adding __add__ to a matrix type.
- devxpy 8y agohttps://docs.python.org/3/reference/datamodel.html#customizing-attribute-access https://docs.python.org/3/reference/datamodel.html#customizi...