adambard / adambard/learnxinyminutes-docs
[Nix] A handful of missing features
未關閉
- 主要語言
- Markdown
- 星號
- 12.3k
- 分支
- 3.7k
- 平均合併
- 13 小時 10 分鐘
- 30 天內合併 PR
- 6
描述
Here's my to-do list for Nix (things I didn't include because I didn't know about them when I first wrote the tutorial):
- You can use interpolation inside a dotted expression, e.g. `nixpkgs.pkgs.haskell.packages.${compiler}.callPackage`
- Inherit, e.g. `inherit a b;` and `inherit (foo) a b;`
- You can use `inherit` in `let` binding context as well as in sets
- `@`-patterns similar to Haskell pattern matching. For example, in a function definition: `f = args @ {x, y, z}: ...;`
- `or` can be used to provide a default value when pulling a value out of a set, e.g. `x.y or "defaultY"`
貢獻指南
評估
這個 Issue 還沒有評估資料。