Home Explore Blog CI



nix

1st chunk of `doc/manual/source/language/variables.md`
b5294ec4229bdd71fc342b39d1053c841b7a7af0cd025d890000000100000142
# Variables

A *variable* is an [identifier](identifiers.md) used as an expression.

> **Syntax**
>
> *expression* → *identifier*

A variable must have the same name as a definition in the [scope](./scope.md) that encloses it.
The value of a variable is the value of the corresponding expression in the enclosing scope.

Title: Variables in the System
Summary
This section defines what a variable is in the system. A variable is an identifier used as an expression and it must have the same name as a definition in the enclosing scope. Its value is the value of the corresponding expression in that scope.