This website requires JavaScript.
Explore
Help
Sign In
NixOS
/
nix-pills
Watch
1
Star
0
Fork
You've already forked nix-pills
0
mirror of
https://github.com/NixOS/nix-pills
synced
2024-09-19 04:00:13 -04:00
Code
Activity
5bafd468eb
nix-pills
/
pills
/
04
/
let-scope.txt
3 lines
89 B
Plaintext
Raw
Normal View
History
Unescape
Escape
`b` is already defined if the user follows along in the repl If a user follows along in the repl, the error won't occur as in section 4.6 the number 4 is assigned to `b`. To make this slightly less confusing and have the error appear as the user is following along we have to use a new variable.
2021-07-01 18:07:04 -04:00
nix-repl> let a = (let c = 3; in c); in c
error: undefined variable `c' at (string):1:31
Copy permalink