Are there modern languages which are require each line to be a statement? Apparently FORTRAN did this, but do any languages since C?
I've heard of Expression-oriented languages, including all functional programming languages, but I can't even find a term for the opposite, a "statement-oriented" language, or one that would not allow an expression, e.g. x + 3;
or a call to a value-returning function without an assignment?
Asked
Active
Viewed 653 times
0

Community
- 1
- 1

Jonathan Price
- 11
- 1
1 Answers
1
This is typical of low-level compiler intermediate languages, such as Three-adress codes.

gasche
- 31,259
- 3
- 78
- 100