Expression (computer science): Difference between revisions

Content deleted Content added
Ps ttf (talk | contribs)
mNo edit summary
m dab variable
Line 1:
An '''expression''' in a [[programming language]] is a combination of [[value (computer science)|value]]s, [[variable (programming)|variable]]s, [[operator (programming)|operator]]s, and [[function (programming)|function]]s that are interpreted (''[[Evaluation (disambiguation)|evaluated]]'') according to the particular [[Order of operations|rules of precedence]] and of association for a particular programming language, which computes and then produces (''returns'', in a [[state (computer science)|stateful]] environment) another value. The expression is said to ''evaluate to'' that value. As in [[Expression (mathematics)|math]], the expression ''is'' (or can be said to ''have'') its evaluated value; the expression is a representation of that value. So, in mathematics, an expression is a representation of a value.
 
Expressions may or may not have [[Side effect (computer science)|side effect]]s. An expression with side effects does not normally have the property of [[referential transparency (computer science)|referential transparency]].