3 ms·
Right, that's true. I think structs are inevitable, and classes is the way to get structs in Python. But yes, the entire OOP-classes with namspaced methods and
by jakobnissen 5y ago
Right, that's true. I think structs are inevitable, and classes is the way to get structs in Python.
But yes, the entire OOP-classes with namspaced methods and "self", that's not inevitable
- pjmlp 5y agoIn a very simplified way, classes are extensible modules. That has always been in trend in most languages, first one gets modularity, then eventually they outgrown now being able to have generic modules, and eventually they land into something that is for all pratical purposes OOP (there are many ways to skin a cat).
- weavejester 5y agoI'm not even sure structs are inevitable. You could write a language around open sets of key/value pairs, for example.