I know that in Go, you can switch with conditions as the case statements like this:
func ctypeAlpha(b byte) bool {
return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z')
}
switch {
case ctypeAlpha(mysql[i]):
...
case mysql[i] == '"' || mysql[i] == '\'' || mysql[i] == '`':
...
But in learning that cases break implicitly, and that to have multiple matches execute the same code, you can use commas like this
switch {
case ctypeAlpha(mysql[i]):
...
case mysql[i] == '"', mysql[i] == '\'', mysql[i] == '`':
...
Personal opinions aside, which is preferred for performance?