|
|
|
|
|
by Scarbutt
1820 days ago
|
|
The development process is totally different when you write structured types first and then write your logic. 10/10 would recommend. Unless you were writing very small throwaway scripts, in what world where you writing your logic first and thinking about your data structures later? |
|
Defining a data structure up front doesn't require a lot of boilerplate as Java incorrectly have taught all of us. Writing a statically typed typing.NamedTuple or @dataclass is literally a one-liner.