| 3 May 2024 |
fricklerhandwerk | 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 | 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 | I think the point is more that "to assign" is more commonly understood than "to bind." | 10:36:08 |
| Enric Morales joined the room. | 15:51:13 |
@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 | You bind to identifiers rather than values. | 16:52:22 |
toonn | 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 | But in Nix functions are just values. | 16:53:02 |