Skip to content

Part 3. Control Flow

Programs need to make choices.

SectionTitle
1if Expressions
2switch
3while Loops
4for Loops
5Labels and Block Expressions
6break and continue
7Inline Loops
8Defer and Cleanup
9Unreachable Code
10Compile Errors as Safety Checks