4 ms·
How is that a major limitation? You only have to specify them 'up front' in terms of how the code is laid out. But in terms of which order you write the code
by eru 4y ago
How is that a major limitation?
You only have to specify them 'up front' in terms of how the code is laid out. But in terms of which order you write the code in, you can add them as you need them.
Specifying the names and types is extremely useful for readers (and users) of your code.
- HelloNurse 4y agoAnything requiring e.g. setattr, getattr, delattr? Without looking far, https://github.com/python-attrs/attrs/blob/main/src/attr/_make.py https://github.com/python-attrs/attrs/blob/main/src/attr/_ma...