Nix (language): Difference between revisions
imported>Gabriel-doriath-dohler No edit summary |
imported>Gabriel-doriath-dohler No edit summary |
||
Line 304: | Line 304: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
Note that (perhaps surprisingly) <code>with</code> '''does not shadow''' variables from outer scope which were bound in a <code>let</code> statement, <code>let inherit ...</code>, or a lambda abstraction. For example: | Note that (perhaps surprisingly) <code>with</code> '''does not shadow''' variables from outer scope which were bound in a <code>let</code> statement, <code>let inherit ...</code> statement, recursive attribute set, or a lambda abstraction. For example: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> |