mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
nix-language: attempt to simplify concept overview (#397)
In the current text its not even for me clear what it is referring to. This rewrite tries to give more examples for each concept of the language. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
1128941fdc
commit
858bf0eae3
|
@ -209,15 +209,19 @@ The Nix language has only few basic constructs which can be combined arbitrarily
|
||||||
|
|
||||||
- Primitive data types
|
- Primitive data types
|
||||||
|
|
||||||
as basic building blocks
|
such as integers or character strings
|
||||||
|
|
||||||
- Compound data types and, in the broader sense, functions
|
- Compound data types
|
||||||
|
|
||||||
to produce and transform complex data
|
that is, lists and attribute sets
|
||||||
|
|
||||||
|
- Functions and operators
|
||||||
|
|
||||||
|
to produce and transform data
|
||||||
|
|
||||||
- Name assignment
|
- Name assignment
|
||||||
|
|
||||||
to manipulate complex data as units
|
to manipulate data as units
|
||||||
|
|
||||||
The language is *pure*, that is, its evaluation does not observe or interact with the outside world – with one notable exception:
|
The language is *pure*, that is, its evaluation does not observe or interact with the outside world – with one notable exception:
|
||||||
reading files, to capture what build tasks will operate on.
|
reading files, to capture what build tasks will operate on.
|
||||||
|
|
Loading…
Reference in a new issue