Nix (language): Difference between revisions

imported>7c6f434c
Floating-point numbers are now supported
imported>Lheckemann
m Formatting
Line 3: Line 3:


<blockquote>The Nix expression language is a pure, lazy, functional language. Purity means that operations in the language don't have side-effects (for instance, there is no variable assignment). Laziness means that arguments to functions are evaluated only when they are needed. Functional means that functions are “normal” values that can be passed around and manipulated in interesting ways. The language is not a full-featured, general purpose language. Its main job is to describe packages, compositions of packages, and the variability within packages.</blockquote>
<blockquote>The Nix expression language is a pure, lazy, functional language. Purity means that operations in the language don't have side-effects (for instance, there is no variable assignment). Laziness means that arguments to functions are evaluated only when they are needed. Functional means that functions are “normal” values that can be passed around and manipulated in interesting ways. The language is not a full-featured, general purpose language. Its main job is to describe packages, compositions of packages, and the variability within packages.</blockquote>
<cite>From the [https://nixos.org/nix/manual/#ch-expression-language Nix manual]</cite>
<cite>From the [https://nixos.org/nix/manual/#ch-expression-language Nix manual]</cite>


The language was designed especially for the [[Nix Package Manager]].
The language was designed especially for the [[Nix Package Manager]].