|
|
4 年之前 | |
|---|---|---|
| .. | ||
| README.md | 93e7a37493 Start updating control flow design (#544) | 4 年之前 |
| conditionals.md | 2f023b3479 Flesh out the conditionals doc (#655) | 4 年之前 |
| loops.md | c836ae78bb `for` uses `in` instead of `:`, and implement #542. (#563) | 4 年之前 |
| return.md | e932b7dcc3 Draft return docs (#620) | 4 年之前 |
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:
if and else provides conditional execution of
statements.return ends the flow of execution within a function,
returning it to the caller.