Nix Language Quirks: Difference between revisions
Clarify that tab characters are not stripped in indented strings |
Add entry about using null as attrset key |
||
| Line 191: | Line 191: | ||
nix-repl> -9223372036854775807 - 1 | nix-repl> -9223372036854775807 - 1 | ||
-9223372036854775808 | -9223372036854775808 | ||
</syntaxHighlight> | |||
== Using null as key in attribute set deletes the attribute == | |||
<syntaxHighlight lang=nix> | |||
nix-repl> { ${null} = "value"; key = "value2"; } | |||
{ key = "value2"; } | |||
</syntaxHighlight> | </syntaxHighlight> | ||