!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

407 Members
Discussion about documentation improvements around the Nix ecosystem81 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 May 2024
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @stablejoy:matrix.org
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?
That’s helpful insight. I chose “assign” because it’s not just programmer jargon but also makes sense in everyday life. You “assign someone to a task”, things like that. You wouldn’t “bind a task to someone”.
09:11:41
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @fricklerhandwerk:matrix.org
That’s helpful insight. I chose “assign” because it’s not just programmer jargon but also makes sense in everyday life. You “assign someone to a task”, things like that. You wouldn’t “bind a task to someone”.
Oh. I guess you could assign a task to someone who is bound by oath to you
10:21:07
@toonn:matrix.orgtoonn I think the point is more that "to assign" is more commonly understood than "to bind." 10:36:08
@kiike:matrix.orgEnric Morales joined the room.15:51:13
@stablejoy:matrix.org@stablejoy:matrix.org
In reply to @toonn:matrix.org
I think the point is more that "to assign" is more commonly understood than "to bind."
Can one say then you assign a value to a variable and you bind an expression to a variable. The second is said in nix repl help. Also binding functions vs assigning values?
16:05:27
@toonn:matrix.orgtoonn You bind to identifiers rather than values. 16:52:22
@toonn:matrix.orgtoonn In most languages functions aren't first-class values so a different term is useful to distinguish what you do with them. 16:52:54
@toonn:matrix.orgtoonn But in Nix functions are just values. 16:53:02

Show newer messages


Back to Room ListRoom Version: 6