Combination of several programming symbols and values intending to produce a result
An expression is code before it gets evaluated. That is, evaluating an expression will give you a result.
Expressions can consists of combinations of variables, constants, operators, function calls, or whatever constructs are available in that language.
Many scripting-languages have an expression data type, and an evaluation function (often called eval
), where calling eval(an_expression)
will calculate a result.
Related tags
- mathematical-expressions for combinations of mathematical symbols
- evaluation and its relatives expression-evaluation, lazy-evaluation and order-of-evaluation