The switch statement is an alternative to if/else conditional construct (commonly called a “case statement”) and may make the program more readable when handling multiple options.

  • dbx12@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    10 months ago

    That would require another account but I’m reluctant to create one since:

    • no privacy policy
    • no legal info who runs the site
    • given the first two points the “risk”-reward does not balance

    Risk is in quotes since it’s more of a “why bother?” than “oh no my info got stolen”