Off-side rule

The off-side rule describes syntax of a computer programming language that defines the bounds of a code block via indentation.

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.

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.