diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-05-20T17·17+0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-05-21T16·08+0200 |
commit | b502b6682b9c73ae5760967eaf7161b3e8523e9e (patch) | |
tree | b198cb186e80e049ed63e6852038e5df87a7de49 /tests/lang/parse-okay-mixed-nested-attrs-1.nix | |
parent | 14c877b4ab097667734b050a79b45658dcf2695d (diff) |
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@`.
Diffstat (limited to 'tests/lang/parse-okay-mixed-nested-attrs-1.nix')
0 files changed, 0 insertions, 0 deletions