5 ms·
Python also doesn’t have interfaces or access modifiers. Would you consider Python to have bad support for OOP by those criteria?
by StefanKarpinski 8y ago
Python also doesn’t have interfaces or access modifiers. Would you consider Python to have bad support for OOP by those criteria?
- spaced-out 8y agoYes, Python definitely has bad support for OOP.
- kbp 8y agoSmalltalk doesn't have them, either.
- StefanKarpinski 8y agoIndeed. Alan Kay might take some issue with this notion of OOP.
- h8hawk 8y agoOnly if define OOP as what java does.
- ken 8y agoSmalltalk might be a better example.
- RivieraKid 8y agoYes, although Python feels more suitable for OOP for some reason, not sure why... perhaps it's the object.method() notation. It's often more natural and readable and allows better autocompletion in an IDE. Also, I prefer that methods are defined inside of a class, it's immediately clear what is a top level functions and what is a method belonging to a class or struct.