Back to Nix

Variables

doc/manual/source/language/variables.md

2.34.7321 B
Original Source

Variables

A variable is an identifier used as an expression.

Syntax

expressionidentifier

A variable must have the same name as a definition in the scope that encloses it. The value of a variable is the value of the corresponding expression in the enclosing scope.