tazjin / nix-1p

A (more or less) one page introduction to Nix, the language.
https://code.tvl.fyi/about/nix/nix-1p
896 stars 24 forks source link

Document binding of attribute set arguments using '@' #7

Closed tazjin closed 2 years ago

tazjin commented 2 years ago

First and foremost this is being added because it was lacking, and nix-1p strives to have fairly complete coverage of all useful features.

Additionally, as pointed out by @nixinator in #6 there is some surprising behaviour around how default arguments work in combination with '@' and I thought this was worth noting.