- Free-form language
In
computer programming , a free-form language is aprogramming language in which the positioning of characters on the page in program text is not significant. Program text does not need to be placed in specific columns as on oldpunched card systems, and frequently ends of lines are not significant.Whitespace is used to delimit tokens, and does not have other significance.Most free-form languages descend from Algol, including C, Pascal, and
Perl . These are alsostructured programming languages, which is sometimes thought to go along with the free-form syntax: Earlierimperative programming languages such as Fortran 77 used particular columns for line numbers, which structured languages don't use or need. Lisp languages are also free-form, although they do not descend from Algol.REXX is mostly free-form, though in some cases whitespace is aconcatenation operator.One recent language which has abandoned parts of the free-form idiom is Python, which uses indentation with whitespace to delimit program blocks. Some critics regard this as a
throwback , and find Python text harder to read and edit as it lacks the "obvious" punctuation of C or Pascal. Python aficionados, however, contend that it improves readability: since indentation is commonly used in structured languages to make block structure visible, Python's use of whitespace ensures that the two are consistent.
Haskell also uses whitespace in this way, and does not require colons to indicate the start of a block.ee also
*
Indent style
*Obfuscated code
Wikimedia Foundation. 2010.