Hacker News new | ask | show | jobs
by dfee 2826 days ago
I disagree. There’s a strange precedent for builtins overloading like ‘type’. The same could be done for ‘dict’. Do you want me to share a satisficing call signature?
1 comments

Type doesn't take in kwargs?

But yes, I'm interested in the call signature you propose such that it's possible to tell whether

    dict(ordered=True)
Means `OrderedDict([])` or `{'ordered': True}`.