|
|
Log in / Subscribe / Register

"Structural pattern matching" for Python, part 1

"Structural pattern matching" for Python, part 1

Posted Aug 7, 2020 8:48 UTC (Fri) by Wol (subscriber, #4433)
In reply to: "Structural pattern matching" for Python, part 1 by NYKevin
Parent article: "Structural pattern matching" for Python, part 1

6. Neither is the default? so you have to be explicit?

Or does that collide with something else?

Cheers,
Wol


to post comments

"Structural pattern matching" for Python, part 1

Posted Aug 7, 2020 21:14 UTC (Fri) by NYKevin (subscriber, #129325) [Link]

That has some "worst of both worlds" vibes for me, although you are correct that it would be more explicit. But I have a hard time imagining a good syntax for that.


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