| 21 Jan 2024 |
K900 | So a ? a is just instant infrec | 19:13:58 |
hexa | why can't they access the variables from the outer function scope? | 19:14:49 |
hexa | * why can't they access the variables from the outer function arguments? | 19:14:55 |
K900 | They can, but the other arguments in the pattern are bound closer | 19:15:15 |
K900 | Because Nix is stupid | 19:15:19 |
K900 | nix-repl> fn = let a = 1; in { a ? a }: a
nix-repl> fn {}
error:
… from call site
at «string»:1:1:
1| fn {}
| ^
… while calling anonymous lambda
at «string»:1:16:
1| let a = 1; in { a ? a }: a
| ^
error: infinite recursion encountered
at «string»:1:22:
1| let a = 1; in { a ? a }: a
|
| 19:16:47 |
K900 | ` nix-repl> fn = let a = 1; b = 1; in { a, b ? a }: b
nix-repl> fn { a = 5; } 5
` is the more normal use case of this | 19:17:44 |
K900 | nix-repl> fn = let a = 1; b = 1; in { a, b ? a }: b
nix-repl> fn { a = 5; }
5
is the more normal use case of this | 19:17:48 |
| @autiboy:matrix.org left the room. | 23:09:18 |
| 22 Jan 2024 |
| @ThorHop:matrix.org changed their display name from hopland to IdeallyYes. | 15:05:58 |
| 23 Jan 2024 |
| @adam:robins.wtf joined the room. | 00:43:56 |
hexa | https://github.com/NixOS/nixpkgs/pull/283010 can someone review/backport? | 02:52:58 |
hexa | I'm currently too busy unfortunately | 02:53:06 |
hexa | cc Yureka (she/her), emily | 02:53:33 |
hexa | * https://github.com/NixOS/nixpkgs/pull/283010 can someone review/test/backport? | 02:53:42 |
hexa | also fixup the commit with release notes, the security advisory and the CVEs which were fixed | 02:54:16 |
hexa | also esr 😕 | 02:54:18 |
@yuka:yuka.dev | I wanted to test the binary that ofborg already built and pushed to cachix.... jokes on me, that binary is x86 😂 | 10:17:53 |
@yuka:yuka.dev | what do you usually test? | 10:23:23 |
@yuka:yuka.dev | besides "it starts" and "the nixos test passes" | 10:23:31 |