Re:Pattern matching accepted for Python
by Spivak on Wednesday February 10, 2021 @12:34AM
(#26086009)
It’s fine. Python just introduced expression assignment. Why not use that?
[ Parent
| on HN ]
Re:Pattern matching accepted for Python
by kortex on Wednesday February 10, 2021 @10:44AM
(#26090662)
That works too but I guess I am still getting used to the walrus operator. What really bugs me about this PEP is they are going through all this effort to introduce match but they don't have match assignments, which is personally one of my favorite things about match.