Dataclasses & What are they for
Dataclasses are an implementation of a code generator, similar to a Named Tuple.
The idea of using a code generator is to save time and reduce wordiness.
There are two views about the purpose of Dataclasses:
These 2 world views are reflected in the name: “Dataclasses”
Per the dataclasses PEP, they are roughly a “Mutable named tuple with defaults”
They provide an elegant syntax for creating data holder objects
MORE LIKE THIS