Nix Language Quirks: Difference between revisions
imported>Fricklerhandwerk @ syntax does not bind default values |
imported>Milahu add section: Indented String trims leading whitespace |
||
Line 121: | Line 121: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Indented String trims leading whitespace == | |||
Not really surprising, but ... | |||
Leading whitespace is removed also in single-line Indented Strings | |||
<syntaxHighlight lang=nix> | |||
'' s '' == "s " | |||
</syntaxHighlight> | |||
Usually, Indented Strings have multiple lines | |||
<syntaxHighlight lang=nix> | |||
'' | |||
s | |||
'' == "s\n" | |||
</syntaxHighlight> | |||
== Nix Language FAQ == | == Nix Language FAQ == |