Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Update switch in 05-control #18

@stellentus

Description

@stellentus

Instead of returning directly in the switch statement, create a variable and store it. This is better to emphasize that break doesn't exist.
Also, add a fallthrough.

Possibly call the function multiple times in main to show those parts running, but I don't think there's space on the slide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions