|
|
3 年之前 | |
|---|---|---|
| .. | ||
| README.md | 93e7a37493 Start updating control flow design (#544) | 4 年之前 |
| conditionals.md | 4e9e43a109 some issues in readme-file, replacing orange with apple (#2656) | 3 年之前 |
| loops.md | 8d3d1b1233 Flesh out loops docs a little (#729) | 4 年之前 |
| return.md | aa4ce80907 docs(design): improve readability (#1431) | 3 年之前 |
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.