The
switch statement sucks. I firmly believe that the only reason it is still haunting C-style languages these days is that it has been with us since ancient times. The
switch statement has limited usefulness, remarkably heavy syntax and is likely to produce errors.