Re:Box: Python dictionaries with recursive dot notation access
by aidos on Friday May 05, 2017 @09:13PM
(#14278076)
Wait, you choose what to put in the dict. I like being able to map from, say, db objects to internal representations. Why wouldn't you want that?!
[ Parent
| on HN ]
Re:Box: Python dictionaries with recursive dot notation access
by dllthomas on Friday May 05, 2017 @10:54PM
(#14278428)
The concern is facing something that expects a map, and not knowing how to correctly populate it.
Re:Box: Python dictionaries with recursive dot notation access
by aidos on Saturday May 06, 2017 @06:00AM
(#14279556)
Time has taught me to prefer lists / flat structures as arguments to functions (and in most other storage and transfer contexts). Besides, either you're passing in entities that conform to the api, or you're not. Nothing about arbitrary keys in dicts changes that.