mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-14 16:28:29 +00:00
Change the `cursor` parameter in `Core.Iterate.Next` to be a `ref` parameter instead of a pointer parameter. Assisted-by: Gemini via Antigravity --------- Co-authored-by: Geoff Romer <gromer@google.com>
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.