mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
auto merge of #18924 : cakebaker/rust/fix_list, r=steveklabnik
This commit is contained in:
commit
7e43f419cb
@ -2653,9 +2653,10 @@ An expression may have two roles: it always produces a *value*, and it may have
|
||||
value, and has effects during *evaluation*. Many expressions contain
|
||||
sub-expressions (operands). The meaning of each kind of expression dictates
|
||||
several things:
|
||||
* Whether or not to evaluate the sub-expressions when evaluating the
|
||||
* expression The order in which to evaluate the sub-expressions How to
|
||||
* combine the sub-expressions' values to obtain the value of the expression.
|
||||
|
||||
* Whether or not to evaluate the sub-expressions when evaluating the expression
|
||||
* The order in which to evaluate the sub-expressions
|
||||
* How to combine the sub-expressions' values to obtain the value of the expression
|
||||
|
||||
In this way, the structure of expressions dictates the structure of execution.
|
||||
Blocks are just another kind of expression, so blocks, statements, expressions,
|
||||
|
Loading…
Reference in New Issue
Block a user