!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 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-rooms295 Servers

Load older messages


SenderMessageTime
11 Dec 2025
@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
@qyriad:katesiria.orgQyriad with hyphens in identifiers we can name variables like package names 20:17:46
@aloisw:julia0815.dealoiswAnd while at that, maybe reusing the string syntax for variable declaration was not so great either. Maybe spicy string literals could help here.20:18:17
@qyriad:katesiria.orgQyriad yeah that could stand some improvement  20:18:46
@aloisw:julia0815.dealoisw
In reply to @qyriad:katesiria.org
subtraction is moderately rare in Nixlang code! i think this is a 100% fine syntactic tradeoff for the DSL
1-1 being an identifier is extremely confusing.
20:19:24
@qyriad:katesiria.orgQyriad oh, no simply ban that too 20:19:34
@qyriad:katesiria.orgQyriad identifiers still cant *start* with a number 20:19:44
@qyriad:katesiria.orgQyriad gods no 20:19:48
@piegames:flausch.socialpiegames inb4 packages.1Password :D 20:20:01
@qyriad:katesiria.orgQyriad hmmm 20:20:35
@kfears:matrix.orgKFears (burnt out)
In reply to @hexa:lossy.network
Per Twitter conversation, no.
Oh, sigh. I hoped it would be a troll. Well, nope, of course it would be our favorite fascist once again showing his disrespect
20:20:37
@aloisw:julia0815.dealoisw
In reply to @qyriad:katesiria.org
oh, no simply ban that too
What is the additional bias towards treating things as an identifier then? a-1 being one is already how it works today. (I think banning 1-1 is mostly fine though.)
20:21:57
@aloisw:julia0815.dealoisw
In reply to @piegames:flausch.social
inb4 packages.1Password :D
packages.r"password"
20:22:25
@aloisw:julia0815.dealoisw ~~packages.\u0031password~~ 20:24:07

Show newer messages


Back to Room ListRoom Version: 10