Nix (language): Difference between revisions
imported>Fricklerhandwerk nix expression language -> nix language |
imported>Sitwon m Correcting the grammar of the sentence by removing an extra occurrence of 'into'. |
||
Line 287: | Line 287: | ||
==== <code>with</code> statement ==== | ==== <code>with</code> statement ==== | ||
The [https://nixos.org/manual/nix/stable/#idm140737321903120 <code>with</code> statement] introduces an attrset's value contents into the lexical scope of | The [https://nixos.org/manual/nix/stable/#idm140737321903120 <code>with</code> statement] introduces an attrset's value contents into the lexical scope of the expression which follows. This means that it brings all keys within that set (that do not already exist in an outer scope) into scope in that expression. So, you don't need to use the dot notation. | ||
Example: | Example: |