|
|
Subscribe / Log in / New account

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.]


to post comments

An overview of structural pattern matching for Python

Posted May 7, 2022 18:30 UTC (Sat) by NYKevin (subscriber, #129325) [Link] (1 responses)

Personally, I don't want to write code in rich text.

An overview of structural pattern matching for Python

Posted May 9, 2022 2:04 UTC (Mon) by smitty_one_each (subscriber, #28989) [Link]

Obviously editor support would be a going-in requirement.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds