Strict programming language
A strict programming language is a programming language that only allows strict functions (functions whose parameters must be evaluated completely before they may be called) to be defined by the user. A non-strict programming language allows the user to define non-strict functions, and hence may allow lazy evaluation. In most non-strict languages, the non-strictness extends to data constructors.
A strict programming language is a programming language that only allows strict functions (functions whose parameters must be evaluated completely before they may be called) to be defined by the user. A non-strict programming language allows the user to define non-strict functions, and hence may allow lazy evaluation. In most non-strict languages, the non-strictness extends to data constructors. ==Examples== Nearly all programming languages in common use today are strict. Examples include C#, Java, Perl (all versions, i.e., through versions 5 and 7), Python, Ruby, Common Lisp, and ML. Some strict programming languages include features that mimic laziness. Raku (formerly named Perl 6) has lazy lists, Python has generating functions, and Julia provides a macro system to build non-strict functions, as does Scheme. Examples for non-strict languages are Haskell, R, Miranda, and Clean. ==Extension== In most non-strict languages, the non-strictness extends to data constructors. This allows conceptually infinite data structures (such as the list of all prime numbers) to be manipulated in the same way as ordinary finite data structures. It also allows for the use of very large but finite data structures such as the complete game tree of chess. As an example, the Haskell language has added dozens of language extensions, divided into levels based upon their reliability and complexity. ==Citations== ==References==
References
No reference rows published for this article.
Cite this article
MLA
"Strict programming language." encyclopegia.org, 2026, https://encyclopegia.org/wiki/strict-programming-language. Accessed 24 November 2026.
Chicago
"Strict programming language." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/strict-programming-language.
APA
encyclopegia.org. (2026). Strict programming language. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/strict-programming-language
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON