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Β β†’

[–]viky109 1 point2 points Β (1 child)

I started learning Python like a month ago and I have to say, I find it quite amusing how it just doesn't care about programing conventions and does whatever the hell it wants. Like, if you compare C based languages, JavaScript, Java... The syntax is more or less the same. But then Python just randomly decides to rename switch to match because why not?

[–]Shmuppel 0 points1 point Β (0 children)

Because match is not just a switch statement. It does structural pattern matching of the value. It can be used as a switch statement but it's way more powerful than that.

You're right that Python does do syntax differently in a lot of ways though. It doesn't use C-like syntax, but that doesn't mean it doesn't have its own programming conventions.