lix/doc/manual/expressions
Maximilian Bosch b502b6682b
doc: clarify that optional attrs in a function argument will be ignored unless specified
In `args@{ a ? 1 }: /* ... */` the value `a` won't be a part of `args`
unless it's specified when calling the function, the default value will
be ignored in this case.

My personal point of view is that this behavior is a matter of taste, at
least I was pretty sure that unmatched arguments will be a part of
`args@` while debugging some Nix code last week.

I decided to add a warning to the docs which hopefully reduces the
confusion of further Nix developers who thought the same about `args@`.
2019-05-21 18:08:26 +02:00
..
advanced-attributes.xml Manual: build locally -> build 2018-11-09 16:08:36 +01:00
arguments-variables.xml
build-script.xml
builder-syntax.xml
builtins.xml Add builtins.hashFile 2019-05-03 17:23:36 +02:00
derivations.xml Fix variable name typo in derivations doc 2017-05-28 15:48:57 +03:00
expression-language.xml
expression-syntax.xml update MD5 to SHA-256 in expression-syntax 2017-08-18 16:07:33 -07:00
generic-builder.xml Delete the stdenv section 2014-12-14 01:39:32 +01:00
language-constructs.xml doc: clarify that optional attrs in a function argument will be ignored unless specified 2019-05-21 18:08:26 +02:00
language-operators.xml Describe arithmetic operators 2017-10-26 18:53:35 +00:00
language-values.xml Clarify indented string escaping rules 2017-10-26 18:53:36 +00:00
simple-building-testing.xml Manual: Remove old cruft 2018-01-31 15:08:46 +01:00
simple-expression.xml Add section on SSH substituter 2014-12-14 03:19:15 +01:00
writing-nix-expressions.xml Delete the stdenv section 2014-12-14 01:39:32 +01:00