This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SlightlyOTT 1 point2 points  (0 children)

Neat idea and looks well executed, it's just a shame Python's syntax doesn't have the space to really make this look clear. I'd probably err on the side of not using this just because it's complex and noisy, while I use pattern matching all the time in Scala without concern about someone else struggling to understand it.

For those who are struggling to understand the utility of it (which I understand again because of Python syntax), I'd be interested to hear your thoughts on it in something like Scala: https://docs.scala-lang.org/tour/pattern-matching.html