Expression (programming)


Expression (programming)

An expression in a programming language is a combination of values, variables, operators, and functions that are interpreted ("evaluated") according to the particular rules of precedence and of association for a particular programming language, which computes and then produces ("returns", in a stateful environment) another value. The expression is said to "evaluate to" that value. As in mathematics, the expression "is" (or can be said to "have") its evaluated value; the expression is a representation of that value.

Expressions may or may not have side effects. An expression with side effects does not normally have the property of referential transparency.

ee also

* Statement (programming) (contrast)
* Boolean expression
* Expression (mathematics)
* evaluation strategy

References

* [http://ftp.sunet.se/foldoc/foldoc.cgi?expression Expression] in The Free On-line Dictionary of Computing, Editor Denis Howe.


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Gene expression programming — (GEP) is an evolutionary algorithm that evolves populations of computer programs in order to solve a user defined problem. GEP has similarities, but is distinct to, the evolutionary computational method of Genetic Programming. In Genetic… …   Wikipedia

  • Expression — may refer to:* Idiom * Facial expression * Artificial discharge of breast milk; see breastfeeding * Expression (mathematics) * Expression (programming), an instruction to execute something that will return a value. * Microsoft Expression Studio,… …   Wikipedia

  • Expression (mathematics) — In mathematics, an expression is a finite combination of symbols that is well formed according to rules that depend on the context. Symbols can designate numbers (constants), variables, operations, functions, and other mathematical symbols, as… …   Wikipedia

  • Programming language — lists Alphabetical Categorical Chronological Generational A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that… …   Wikipedia

  • Programming paradigm — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concu …   Wikipedia

  • Programming in the large and programming in the small — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concurrent computin …   Wikipedia

  • Expression — Ex*pres sion ([e^]ks*pr[e^]sh [u^]n), n. [L. expressio: cf. F. expression.] 1. The act of expressing; the act of forcing out by pressure; as, the expression of juices or oils; also, of extorting or eliciting; as, a forcible expression of truth.… …   The Collaborative International Dictionary of English

  • Expression-oriented programming languages — An expression oriented programming language is a programming language where (nearly) every construction is an expression and yields a value. Macro definitions, preprocessor commands, and declarations are often treated as statements in expression… …   Wikipedia

  • Programming idiom — A programming idiom is a means of expressing a recurring construct in one or more programming languages. Generally speaking, a programming idiom is an expression of a simple task or algorithm that is not a built in feature in the programming… …   Wikipedia

  • programming language — Language Lan guage, n. [OE. langage, F. langage, fr. L. lingua the tongue, hence speech, language; akin to E. tongue. See {Tongue}, cf. {Lingual}.] [1913 Webster] 1. Any means of conveying or communicating ideas; specifically, human speech; the… …   The Collaborative International Dictionary of English


Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.