What does “control falls through a switch statement” mean in this context? Control just moves on to the next statement?

I thought if there is no match and a default case doesn’t exist it will raise an exception. Is it not true?

  • jim_stark@programming.devOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I see, thank you! I got confused with “control falls through a switch statement” and “C++ style fall through in switch statements”.