3 ms·
> I'm not an OOP person, but to me, dataclasses seem like a solution in search of a problem. As an OOP person, I would say that dataclasses are an incomplete s
by BerislavLopac 8y ago
> I'm not an OOP person, but to me, dataclasses seem like a solution in search of a problem.
As an OOP person, I would say that dataclasses are an incomplete solution to a complex, multi-faceted problem, and a solution which doesn't really solve any of those facets. It is pretty much unusable as it is; for any practical use you need to extend it based on the specific needs of your application. But then it makes more sense to use a more complete solution such as attrs, which covers a much wider set of problems.