Nix Language Quirks: Difference between revisions
m →with and let: fix capitalization Tags: Mobile edit Mobile web edit |
→Old let syntax: add link to 2017 thread mentioning old syntax Tags: Mobile edit Mobile web edit |
||
| Line 28: | Line 28: | ||
== Old <code>let</code> syntax == | == Old <code>let</code> syntax == | ||
This is an old Nix syntax, that probably isn't used much | This is an [https://github.com/NixOS/nix/issues/1361#issuecomment-323050690 old] Nix syntax, that probably isn't used much | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
nix-repl> let { x = 1; y = x + 1; body = y; } | nix-repl> let { x = 1; y = x + 1; body = y; } | ||