4 ms·
Not to be harsh but why would anyone ever use this? It's just some syntax sugar? (and over 3K loc... yikes)
by rak1507 5y ago
Not to be harsh but why would anyone ever use this? It's just some syntax sugar? (and over 3K loc... yikes)
- jackbrookes 5y agoIt's useful for APIs that return dictionaries that have a reliable structure
- rak1507 5y agoBut.. why not use foo['bar'] vs foo.bar? Are the extra 3 characters so annoying you have to rely on a new library?
- aqeelat 5y agoIt might be useful for auto completion when you’re using versions older than 3.8 and can’t use TypedDict.
- rak1507 5y agoAuto completion? So saving a fraction of a second? Again... not sure I see the benefit here.
- aqeelat 5y agoYou do know that code completion is a selling feature for IDEs, right?
- aqeelat 5y agoYou know what .. I’ll need to give it a try before I can actually discuss it further. I don’t want my ignorance to cloud other people’s judgement.
- peakaboo 5y agoFraction of a second? Maybe if you remember all the keys in your dictionary in your head. Otherwise you would have to look them up while coding if you don't have auto completion.