4 ms·
In idiomatic Python, the only reason for class inheritance is for code reuse. In other languages, especially Java, class hierarchies are a matter of self-estee
by bayesianhorse 13y ago
In idiomatic Python, the only reason for class inheritance is for code reuse.
In other languages, especially Java, class hierarchies are a matter of self-esteem.
Javascript programmers could do worse than emulate Python in this regard.