You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/guides/best-practices.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,10 +31,8 @@ rec {
31
31
{ a = 1; b = 3; }
32
32
```
33
33
34
-
There are a couple of pitfalls:
35
-
36
-
- It's possible to introduce a hard to debug error `infinite recursion` when shadowing a name, the simplest example being `let b = 1; a = rec { b = b; }; in a`.
37
-
- Combining with overriding logic such as the [`overrideAttrs`](https://nixos.org/manual/nixpkgs/stable/#sec-pkg-overrideAttrs) function in {term}`Nixpkgs` has a surprising behaviour of not overriding every reference.
34
+
A common pitfall is to introduce a hard to debug error `infinite recursion` when shadowing a name.
35
+
The simplest example for this is: `let a = 1; in rec { a = a; }`.
0 commit comments