]>
Commit | Line | Data |
---|---|---|
8bb4bdeb XL |
1 | # Statements and expressions |
2 | ||
3 | Rust is _primarily_ an expression language. This means that most forms of | |
4 | value-producing or effect-causing evaluation are directed by the uniform syntax | |
5 | category of _expressions_. Each kind of expression can typically _nest_ within | |
6 | each other kind of expression, and rules for evaluation of expressions involve | |
7 | specifying both the value produced by the expression and the order in which its | |
8 | sub-expressions are themselves evaluated. | |
9 | ||
10 | In contrast, statements in Rust serve _mostly_ to contain and explicitly | |
11 | sequence expression evaluation. |