Off-side rule
Programming language syntax rule that defines code block demarcation via indentation / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Off-side rule?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
This article is about the programming language syntax feature. For other uses, see Offside (disambiguation).
The off-side rule describes syntax of a computer programming language that defines the bounds of a code block via indentation. [1] [2]
This article needs additional citations for verification. (December 2011) |
The term was coined by Peter Landin, possibly as a pun on the offside law in association football.
An off-side rule language is contrasted with a free-form language in which indentation has no syntactic meaning, and indentation is strictly a matter of style.
An off-side rule language is also described as having significant indentation.