|
|
Expressions, values, and types | We will now describe and characterize the important concepts of expressions, values and types.
|
Evaluation of an expression yields a value which belongs to a type |
| Expressions are part of the source program, as written by the programmer. A function expression is called a lambda expression. We will encounter these important expressions later in this material. |
| The primitive values are those which cannot be decomposed into more primitive parts. Some of the important primitive values are numbers, the two boolean values (true and false), and the characters of some character set. Primitive values stand as a contrast to composite values, such as lists and arrays, which are aggregations of parts, each of which are compositive or primitive values themselves. |
|