▲ | pjmlp 5 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
There is no such thing as non-OO Python, the language is like Smalltalk, everything is an object, even plain numeric values. This wasn't true with original Python, however since new style classes became the default type system, everything is indeed an object. So for the anti-OOP folks out there using languages like Python as an example,
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | treve 5 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is less about what metaphors are under the hood, but the patterns used on top of them. You can get technical, but it's definitely possible to write primarily functional, imperative or object-oriented code in Python, irrespective of what the syntax is for dealing with primitives. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | constantcrying 5 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
The talk makes a very specific complaint. That complaint is not that you are associating data with the functions operating on that data. What the talk is about compile time (and maybe execution time in the case of python) hierarchies being structured as a mapping of real objects. This is how I was taught OOP and this is what people are recognizing as "OOP". >So for the anti-OOP folks out there using languages like Python as an example, Just because a language associates data with functions, does not mean that every program hierarchy has to map onto a real world relationship. Why are you even commenting on this with your nonsense? Do you really think that if someone is complaining about OOP they are complaining that data types store functions for operating on that data? Has literally anyone ever complained about that? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|