!9IQChSjwSHXPPWTa:lix.systems

Lix

1107 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms297 Servers

Load older messages


SenderMessageTime
11 Dec 2025
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingone can access them even without the quotes19:53:59
@charles:computer.surgeryCharlesno19:54:06
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingwell, i just did19:54:23
@charles:computer.surgeryCharles that's getting parsed as one minus the value stored in the variable a minus one 19:54:23
@charles:computer.surgeryCharles you set a to 0 19:54:29
@charles:computer.surgeryCharleswait19:54:37
@charles:computer.surgeryCharlesno i'm confused19:54:41
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingi set a to 119:54:44
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping and 1-a to 0 19:54:48
@charles:computer.surgeryCharlesoh then i'm not confused and you're wrong19:55:10
@charles:computer.surgeryCharlesthis is just 1 minus 1 minus 119:55:28
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingokay yeah19:55:59
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingforgot that i set a19:56:04
@charles:computer.surgeryCharles because a is parsed as a variable containing 1 19:56:04
@charles:computer.surgeryCharles everything in the screenshots is explained by this plus "quoted variables can be set but not accessed unless it's an attrset key in which case you can use attrset."foo" to access the value for that key" 19:58:03
@aloisw:julia0815.dealoisw You can also put it into an attrset using "inherit". 20:01:50
@charles:computer.surgeryCharlesoh that's clever20:14:33
@qyriad:katesiria.orgQyriad
In reply to @commentator2.0:elia.garden
sent an image.
imo Nixlang2: we simply always require spaces around subtraction
20:14:34
@charles:computer.surgeryCharles
nix-repl> "1" = 2
Added "1".

nix-repl> {inherit "1";}."1"
2
20:14:48
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping Nixlang2 should just forbid - in identifiers /hj 20:15:30
@qyriad:katesiria.orgQyriad disagree 20:15:37
@piegames:flausch.socialpiegameshorrors agree ^^20:15:56
@qyriad:katesiria.orgQyriad hyphens in identifiers is good actually, particularly for a package manager 20:15:59
@piegames:flausch.socialpiegamesAt the very least I think unary negation without parentheses should be deprecated20:16:18
@charles:computer.surgeryCharlesso like just bias towards assuming no spaces means the whole thing is an identifier?20:16:21
@qyriad:katesiria.orgQyriad yep 20:16:33
@charles:computer.surgeryCharlesinteresting20:16:47
@aloisw:julia0815.dealoiswNO20:16:52
@qyriad:katesiria.orgQyriad subtraction is moderately rare in Nixlang code! i think this is a 100% fine syntactic tradeoff for the DSL 20:17:08
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingthats why snake_case exists20:17:25

Show newer messages


Back to Room ListRoom Version: 10