28 Aug
2020
28 Aug
'20
7:41 a.m.
On Thu, Aug 27, 2020, 7:31 PM Joseph Martinot-Lagarde
As for foo[a=1, b=2], I'd propose to keep it a SyntaxError for now, and always require an index. This way it can be changed later when people are more used to the keyword args and have more ideas of what would be good as a default argument. In the face of ambiguity, refuse the temptation to guess ;)
Joseph
That last would eliminate one of the probably most important uses of the new functionality, in my opinion, which would be a type hint shortcut that looks like this: Vector = dict[i=str, j=str] Kwargs = dict[name=str, value=Any]