]> git.proxmox.com Git - rustc.git/blame - src/doc/reference/src/statements-and-expressions.md
New upstream version 1.54.0+dfsg1
[rustc.git] / src / doc / reference / src / statements-and-expressions.md
CommitLineData
8bb4bdeb
XL
1# Statements and expressions
2
3Rust is _primarily_ an expression language. This means that most forms of
4value-producing or effect-causing evaluation are directed by the uniform syntax
5category of _expressions_. Each kind of expression can typically _nest_ within
6each other kind of expression, and rules for evaluation of expressions involve
7specifying both the value produced by the expression and the order in which its
8sub-expressions are themselves evaluated.
9
10In contrast, statements in Rust serve _mostly_ to contain and explicitly
11sequence expression evaluation.