8
I have been dabbling in Python for some time now and have written some really easy apps. But I alway...
since 2 years, 10 months ago
1 of 1
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Just FYI a functional programming style doesn't stop you from using objects or methods. You just avoid OOP style patterns like inheritance and instead rely more on properties and composition. The standard library does this with the "SupportsXxxx" types. Inheritance doesn't really work for dataclasses anyway, so they lend themselves to this approach.