-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One line one sentence the statements and expressions chapter.
- Loading branch information
Showing
2 changed files
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# Statements and expressions | ||
|
||
Rust is _primarily_ an expression language. This means that most forms of | ||
value-producing or effect-causing evaluation are directed by the uniform syntax | ||
category of _expressions_. Each kind of expression can typically _nest_ within | ||
each other kind of expression, and rules for evaluation of expressions involve | ||
specifying both the value produced by the expression and the order in which its | ||
sub-expressions are themselves evaluated. | ||
Rust is _primarily_ an expression language. | ||
This means that most forms of value-producing or effect-causing evaluation are directed by the uniform syntax category of _expressions_. | ||
Each kind of expression can typically _nest_ within each other kind of expression, and rules for evaluation of expressions involve specifying both the value produced by the expression and the order in which its sub-expressions are themselves evaluated. | ||
|
||
In contrast, statements serve _mostly_ to contain and explicitly | ||
sequence expression evaluation. | ||
In contrast, statements serve _mostly_ to contain and explicitly sequence expression evaluation. |