docs(nix): remove premature forwarding rule
This commit is contained in:
20
docs/nix.md
20
docs/nix.md
@@ -129,26 +129,6 @@ Use:
|
||||
}:
|
||||
```
|
||||
|
||||
### Use `@` for forwarding wrappers
|
||||
|
||||
Use `@` when a wrapper passes its complete argument set to another function.
|
||||
Name each argument the wrapper uses before `...`.
|
||||
Forward the bound argument set unchanged.
|
||||
|
||||
Avoid:
|
||||
|
||||
```nix
|
||||
{ hostName, system ? "x86_64-linux", ... }:
|
||||
mkHost { inherit hostName system; }
|
||||
```
|
||||
|
||||
Use:
|
||||
|
||||
```nix
|
||||
args@{ hostName, ... }:
|
||||
mkHost args
|
||||
```
|
||||
|
||||
## `let` Bindings
|
||||
|
||||
### Use `let` for named intermediate values
|
||||
|
||||
Reference in New Issue
Block a user