0

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?

Community
  • 1
  • 1

1 Answers1

1

This is typical of low-level compiler intermediate languages, such as Three-adress codes.

gasche
  • 31,259
  • 3
  • 78
  • 100