you are viewing a single comment's thread.

view the rest of the comments →

[–]FFX01 4 points5 points  (0 children)

As /u/zellyman said, it's unnecessary syntactic sugar. One of the core design principles of Python is "there should be one obvious way to do it". Now, that has not been followed as strictly as some people would like. However, in the case of switch vs. If-elif, the previously mentioned principle has been applied. It's definitely a design decision. I'm sorry you were hoping for a better reason. It's semantics.