Control Flow
Compact provides a small, statically analyzable set of control flow constructs:
if/if...elsestatementsforloops (bounded)returnassert- blocks
{ ... } constbindings- conditional expressions
e0 ? e1 : e2
Source: Statements
In this chapter:
- Conditionals -
ifstatements and ternary expressions - Loops - bounded
forloops