mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:10:12 +01:00
The semicolon is part of the statement's syntax, and including it will hopefully help clarify that we're not using `var` as a placeholder and talking about `return` _variablename_ `;`.
Control flow
Overview
Blocks of statements are generally executed linearly. However, statements are the primary place where this flow of execution can be controlled.
Carbon's flow control statements are:
ifandelseprovides conditional execution of statements.- Loops:
returnends the flow of execution within a function, returning it to the caller.