Re:Crimes with Python's pattern matching
by bilboa on Tuesday August 02, 2022 @10:21AM
(#32318819)
The point though is that the tone of his article seems to suggest that this is some scary "gotcha" of the language, whereas some of us consider this to just be the expected behavior.
[ Parent
| on HN ]
Re:Crimes with Python's pattern matching
by shadycuz on Tuesday August 02, 2022 @08:20PM
(#32326110)
Well to me the "gotcha" wasn't that you could control the match from the abstract class, it was all the silly things that you could do. Which for me was the point of the article. I mean the first palindrome example was pretty cool no?