It depends on the language syntax where switch is used.
For example, the "case" operator in Pascal does not fall-through (which is a serious problem in C-kind of languages).
In addition, the switch can be internally implemented in different way than a chain of ifs. For example with hash table, which can be much faster in the cases when you want to compare big amount of strings.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It depends on the language syntax where switch is used.
For example, the "case" operator in Pascal does not fall-through (which is a serious problem in C-kind of languages).
In addition, the switch can be internally implemented in different way than a chain of ifs. For example with hash table, which can be much faster in the cases when you want to compare big amount of strings.