Skip to content

Commit

Permalink
Assignment expressions are *NOT* LTR evaluated.
Browse files Browse the repository at this point in the history
This commit does not try to define their evaluation order, they just
removed them from the list of shared LTR evaluated expressions.
  • Loading branch information
Havvy committed Nov 20, 2020
1 parent 6df9565 commit aa5e263
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ The following list of expressions all evaluate their operands the same way, as
described after the list. Other expressions either don't take operands or
evaluate them conditionally as described on their respective pages.

* Operator expressions (except the Lazy boolean operators)
* Dereference expression
* Error propagation expression
* Negation expression
* Arithmetic and logical binary operators
* Comparison operators
* Type cast expression
* Grouped expression
* Array expression
* Await expression
Expand Down Expand Up @@ -127,9 +132,9 @@ assert_eq!(
);
```

> **Note**: Since this is applied recursively, expressions are also evaluated
> from innermost to outermost, ignoring siblings until there are no inner
> subexpressions.
> **Note**: Since this is applied recursively, these expressions are also
> evaluated from innermost to outermost, ignoring siblings until there are no
> inner subexpressions.
## Place Expressions and Value Expressions

Expand Down

0 comments on commit aa5e263

Please sign in to comment.