在nix语言快速入门前面添加集合的基础知识 #46
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
作用
让 Nix 新手更容易理解这份教程。
背景
我第一次尝试学习 Nix 时使用的资料是 NixOS & Flakes Book,其中Nix 语言入门提到:
打开这个页面后,交互模式还好,但是当我读到下面这句
我完全无法理解:匿名集合在这里指的是什么?a 集合又指的是什么?
即使我打算暂时放下问题,读读接下来的段落,或许就能理解前面的问题了,但完全不行,疑惑甚至越来越多了。
以上所述的入门失败大概已经是一年前的事了。
前不久我打算再次挑战 Nix 入门,这次我选择的教程是 Evertras/simple-homemanager,并且顺利地阅读到了结尾。只不过,它的内容深度有限,稍微深入的内容还是需要其它资源。
于是我再次想起了《Nix 语言快速入门》,而这次我终于能理解它在说什么了,并且也明白了对于真正的 Nix 新手来说,它所缺少的基础知识是什么,于是就有了这个 PR。