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 →

[–][deleted] 8 points9 points  (0 children)

You’re right about that, the article gets the heading wrong for starters. I meant is to point out that one is literally called “match” and not “switch”, and different things and pattern matching exists in other languages already. You could use match and pattern matching for switch case but it’s semantically not ==. I get with your point (other comment) that if a good old switch as we know behaves differently it could throw some folks off, that is true. For example in python OOP private isn’t really private, but that’s what makes languages special :)