An overview of structural pattern matching for Python
An overview of structural pattern matching for Python
Posted May 7, 2022 1:51 UTC (Sat) by smitty_one_each (subscriber, #28989)In reply to: An overview of structural pattern matching for Python by bartoc
Parent article: An overview of structural pattern matching for Python
If I ever get around to crafting a language, I would achieve this by having editor support for wrapping all keywords in JSON, e.g. {'for':'kw'} so that it looks like `for` but lets the coder use `for` for whatever else is interesting. [Waves hands as to how that would actually work from a UX perspective.]
