!9IQChSjwSHXPPWTa:lix.systems

Lix

1121 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-rooms302 Servers

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


SenderMessageTime
11 Dec 2025
@charles:computer.surgeryCharles identifiers can contain - and cannot start with a number 19:44:33
@neobrain:matrix.orgneobrainoh, that's an interesting perk. I'll have to try and see if I can find any good resources on it19:46:44
@charles:computer.surgeryCharles what's not clear to me though is how to actually reference the value contained in the variable "1-a" 19:46:53
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping "and cannot start with a number"
if you look closely: "1-a" = 0 worked :D
19:49:04
@rosssmyth:matrix.orgrosssmythimage.png
Download image.png
19:49:08
@charles:computer.surgeryCharlesit's quoted, which is handled specially19:49:27
@rosssmyth:matrix.orgrosssmythvery funny thing I found recently19:49:27
@rosssmyth:matrix.orgrosssmythyou can quote them and then you cannot name them after defining them19:49:41
@rosssmyth:matrix.orgrosssmythvery funny19:50:09
@charles:computer.surgeryCharles

normally this is okay because the non-identifier is an attrset key which you can access, like this

{"1-a": "foo"}."1-a"
19:50:59
@charles:computer.surgeryCharles* it's quoted, which is handled specially, so no19:51:30
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingimage.png
Download image.png
19:51:50
@charles:computer.surgeryCharleswhat about it? it's following the same rules19:53:32
@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

Show newer messages


Back to Room ListRoom Version: 10