4 ms·
> Managing State with Simple Structures: Use Dictionaries or Lists This is bad advice because you wind up hardcoding (or using vars for your key names, slightl
by jollyllama 1y ago
> Managing State with Simple Structures: Use Dictionaries or Lists
This is bad advice because you wind up hardcoding (or using vars for your key names, slightly better) your behavior on the state of the dict. Seriously, why not just make a class? You get better IDE and possibly better LLM support.
- fluidcruft 1y agoIt's trivial to subclass dict and list anyway.