Home Explore Blog Models 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
9e324611 (1st chunk of `doc/manual/source/language/variables.md`)
Title: Variables: Definition and Scope
Summary
A variable is an identifier used as an expression. Its syntax is simply the identifier itself. A variable must share the same name as a definition within its enclosing scope, and its value is determined by the value of that corresponding expression in the same enclosing scope.