Home Explore Blog CI



nix

doc/manual/source/language/variables.md
07ce768903f22ebdbf1ffaad2687ca1203470fe215582f3d0000000300000142
# 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.

Chunks
b5294ec4 (1st chunk of `doc/manual/source/language/variables.md`)
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.