Message388580
Not a much thought went into that decision, honestly.
The main reason I chose an identifier there was because "as" always stores a simple name, so allowing it to potentially be other contexts or expressions (which are illegal) just seemed to create complexity. I saw we used simple identifiers in many similar places and just went with it.
(As a related note, if mapping patterns had their own AST nodes, I would probably choose to represent "**rest" as an optional identifier, rather than a keyless value or optional Name.)
If it causes problems for clients of the AST, it's easy to change. But I sort of like it a bit better how it is now. |
|
Date |
User |
Action |
Args |
2021-03-13 01:13:05 | brandtbucher | set | recipients:
+ brandtbucher, gvanrossum, rhettinger, willingc, Daniel Moisset, lys.nikolaou, pablogsal, xtreak, BTaskaya, kj, laurenjl, freundTech |
2021-03-13 01:13:05 | brandtbucher | set | messageid: <1615597985.89.0.490566804956.issue42128@roundup.psfhosted.org> |
2021-03-13 01:13:05 | brandtbucher | link | issue42128 messages |
2021-03-13 01:13:05 | brandtbucher | create | |
|