Off-side rule
|
- This article is about the off-side rule in programming. For other meanings, see offside.
A program is said to adhere to the off-side rule if in which, the scope of declarations (a block) is expressed by their indentation.
It is said of programming languages, like:
Definition
"Any non-whitespace token to the left of the first such token on the previous line is taken to be the start of a new declaration." --P.J. Landin "The Next 700 Programming Languages" CACM vol 9 pp157-165, March 1966
Code Examples
...
External links
- Off-side rule from FOLDOC (http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?off-side+rule)