Skip to content

Commit 30584b0

Browse files
committed
Additional information on Expression-Oriented Languages
Added the fact that expression statements can form part of larger expressions.
1 parent 1f80880 commit 30584b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/trpl/glossary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ syntactic categories: expressions had a value and statements did things.
5353
However, later languages blurred this distinction, allowing expressions to do
5454
things and statements to have a value. In an expression-oriented language,
5555
(nearly) every statement is an expression and therefore returns a value.
56+
Consequently these expression statements can themselves form part of larger
57+
expressions.
5658

5759
[expressions]: glossary.html#expression
5860
[statements]: glossary.html#statement

0 commit comments

Comments
 (0)