Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 15ddfdf

Browse files
committed
remove list
1 parent 2a3d18d commit 15ddfdf

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

reference/misc/statement_vs_expression.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,6 @@ Statement and expression are mutually exclusive, a definition can be a statement
44

55
For example, prefix operation is an expression but not a statement. Solely using it as a statement results in syntax error, and needed to be wrapped in curve bracket `()` in order to be syntactically valid (although, it may yield a warning in linting).
66

7-
The following are non-exhaustive list of definitions according to whether it is an expression, statement, or both.
8-
9-
Statement only:
10-
11-
- alias
12-
- function declaration
13-
- variable declaration
14-
- namespace
15-
- void function call
16-
- void method call
17-
- assignment
18-
- type alias
19-
- return
20-
- break
21-
- continue
22-
- for loop
23-
- if statement
24-
25-
Expression only:
26-
27-
- unnamed function
28-
- steady function
29-
- steady method call
30-
- prefix method call
31-
- if expression
32-
- from
33-
- variable
34-
35-
Both Statement and Expression:
36-
37-
- grouping
38-
- method call other than prefix
39-
- non-void unsteady function call
40-
- non-void unsteady method call
41-
427
## Declaration
438

449
Declarations are statements that requires an identifier.
45-
46-
- namespace
47-
- variable declaration
48-
- function declaration
49-
- type alias

0 commit comments

Comments
 (0)