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==
Cite this
"Strict programming language". 1783254048. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1362668124 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy