Draft: Example usage of class instead of dict
Having a certain class for objects instead of dict
s has some advantages, e.g.
- IDEs show available attributes when typing
objectName.
- Linters can check whether an attribute really exists and what type it has
- Freedom to implement methods
- Easier way to pass attributes to f-string because no quotes are required to access an element
IMO it is worth creating classes for existing dicts and using them instead. This might be relatively straightforward for symbols but a huge amount of work for footprints due to the extensive usage in the footprint generators. Before changing any footprint related dicts it is mandatory to add more unit tests. Just to make sure no generators break.