Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 4d829916e7c8
Choose a base ref
...
head repository: NixOS/nix
compare: bfc6bdf222d0
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 21, 2019

  1. doc: clarify that optional attrs in a function argument will be ignor…

    …ed 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@`.
    Ma27 committed May 21, 2019
    Copy the full SHA
    b502b66 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2019

  1. Merge pull request #2880 from Ma27/document-optional-attrs-with-at-pa…

    …ttern
    
    doc: clarify that optional attrs in a function argument will be ignored unless specified
    edolstra committed May 22, 2019
    Copy the full SHA
    bfc6bdf View commit details
    Browse the repository at this point in the history