!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

418 Members
Discussion about documentation improvements around the Nix ecosystem89 Servers

Load older messages


SenderMessageTime
27 Apr 2024
@wamirez:matrix.orgwamirez
In reply to@stablejoy:matrix.org
Oh thanks, I misread then somehow I thought it's mornings. I have work afternoons (until Summer begins at least)
Sure. I see... if you get a short break though and want to join, feel free to do so (no super strict times). Cheers!
11:05:32
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @wamirez:matrix.org
Sure. I see... if you get a short break though and want to join, feel free to do so (no super strict times). Cheers!
yeah this part in the linked pad: "I’ll try to distribute the hours across the day to make it more accessible, but prefer 7:00-11:00 UTC. Expect the times to converge on helping whoever shows up consistently." Anyway looking forward to it very much
11:50:16
@ygt:matrix.org@ygt:matrix.org joined the room.18:22:52
@nebunebu:matrix.orgnebu joined the room.20:14:29
28 Apr 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.22:47:13
@federicodschonborn:matrix.org@federicodschonborn:matrix.org left the room.23:10:03
29 Apr 2024
@matthewcroughan:defenestrate.itmatthewcroughan changed their profile picture.13:01:01
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:29:10
30 Apr 2024
@stablejoy:matrix.org@stablejoy:matrix.org

Also known as “let expression” or “let binding”

let expressions allow assigning names to values for repeated use.

12:26:51
@stablejoy:matrix.org@stablejoy:matrix.orgI see the word assignment is used apr in the nix tutorial on nix dev12:27:06
@stablejoy:matrix.org@stablejoy:matrix.org* I see the word assignment is used a lot in the nix tutorial on nix dev12:27:18
@stablejoy:matrix.org@stablejoy:matrix.org* I see the word assignment is used alot in the nix tutorial on nix dev12:27:38
@stablejoy:matrix.org@stablejoy:matrix.orgIm curious why not bind or binding12:27:53
@toonn:matrix.orgtoonn Most people are probably more familiar with the concept of variable assignment. 12:28:22
@stablejoy:matrix.org@stablejoy:matrix.org I see Eelco uses the word assignment twice in thesis and binding more than 60 times. 12:29:24
@stablejoy:matrix.org@stablejoy:matrix.orgOh ok how do you say usually?12:29:47
@toonn:matrix.orgtoonn I'd probably say assign more often. One difference is you assign a value to a variable, while you bind an identifier to a value. 12:32:45
@stablejoy:matrix.org@stablejoy:matrix.orgOh like the assigned value changes while the identifier binds to that value12:34:52
@toonn:matrix.orgtoonn Well, in a pure language values assigned to variables don't actually change. 12:36:43
@toonn:matrix.orgtoonn You can shadow a name but that's not really the value changing. 12:36:59
@stablejoy:matrix.org@stablejoy:matrix.org Yes thats where my question is coming from. 12:41:43
@stablejoy:matrix.org@stablejoy:matrix.org

x = 2
x = 3

x is 3

let x = 5; in x
5

x stays 3

12:42:20
@stablejoy:matrix.org@stablejoy:matrix.orgUh formatting.. sorry. So assingment is said as convention in nix?12:42:49
@toonn:matrix.orgtoonn I wouldn't say it's a Nix convention per se. More of a general programmer's convention. 12:44:21
@toonn:matrix.orgtoonn I also wouldn't worry about it much but maybe that's just me. 12:46:45
@stablejoy:matrix.org@stablejoy:matrix.org Yeah I was curious because its used in the nix tutorial. 13:01:18
@stablejoy:matrix.org@stablejoy:matrix.org *
x = 2
x = 3
x is 3
let x = 5; in x
5
x stays 3
13:02:23
@stablejoy:matrix.org@stablejoy:matrix.org *

x = 2
x = 3

x is 3

let x = 5; in x
5

x stays 3

13:08:54
@stablejoy:matrix.org@stablejoy:matrix.org *
x = 2
x = 3
# x is 3
let x = 5; in x
5
# x stays 3
13:09:35
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @toonn:matrix.org
I'd probably say assign more often. One difference is you assign a value to a variable, while you bind an identifier to a value.
Oh I see now, its like describing two directions. The assignment is describing direction from value to variable and the binding from identifier to value?
13:18:42

Show newer messages


Back to Room ListRoom Version: 6