Ideas from books, articles & podcasts.
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:
In the beginning there where:
Later Named Tuples where added as a code generator with the goal of adding ...
The code generation can be configured by providing keyword a...
In the image example, the generated code includes:
❤️ Brainstash Inc.