4 ms·
I see what you mean. So instead of claiming that Python employs class-based object orientation, I should have said something like: Much existing library code i
by leephillips 1y ago
I see what you mean. So instead of claiming that Python employs class-based object orientation, I should have said something like:
Much existing library code is needlessly rigid and complex, even when supplying simple functionality. This is encouraged by Python’s mechanism of method specialization, which uses single dispatch and class objects. An attempt to re-use methods from a library leads to the expression problem.
- zahlman 1y agoYes, the standard library has a lot of questionable design (some inspired by Java, some by C), and many programmers overuse classes. I'm a fan of (former core dev) Jack Diederich's talk, https://www.youtube.com/watch?v=o9pEzgHorH0 https://www.youtube.com/watch?v=o9pEzgHorH0 .