!9IQChSjwSHXPPWTa:lix.systems

Lix

1125 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-rooms311 Servers

Load older messages


SenderMessageTime
20 Mar 2026
@piegames:flausch.socialpiegames
In reply to @emilazy:matrix.org
''\ is deprecated? that's quite painful considering I believe it's the only way to write some strings...
No it's not, just certain ill-defined escape sequences
13:36:17
@emilazy:matrix.orgemily right, I mean you need that behaviour to write certain ''...'' strings unless I'm misunderstanding you 13:41:05
@emilazy:matrix.orgemily IIRC a literal ''${ or something is quite hard otherwise. forget if that's the case I ran into where it's necessary 13:41:42
@piegames:flausch.socialpiegames
nix-repl> ''''${''
"\${"

still works

14:03:28
@piegames:flausch.socialpiegamesif you have any examples that can't be written because of the deprecation, lmk.14:04:33
@emilazy:matrix.orgemily that's not ''${ :) 14:05:35
@piegames:flausch.socialpiegamesugh, sorry14:05:48
@emilazy:matrix.orgemilyI'll see if I can double check an example when I'm back at a keyboard though.14:06:11
@piegames:flausch.socialpiegames

I mean to type

nix-repl> '''''''${''
"''\${"

of course :)

14:06:05
@piegames:flausch.socialpiegames(Nix is real and can't hurt you)14:06:14
@piegames:flausch.socialpiegames* (Nix is not real and can't hurt you)14:06:26
@emilazy:matrix.orgemilyyeah I think it probably involved a \ or something in there too. but no REPL to jog my memory right now.14:07:27
@piegames:flausch.socialpiegamesadmittedly some of these are a bit tricky even when a better alternative exists, so we might at least improve the error message to point users in the right direction14:11:19
@piegames:flausch.socialpiegamesI'd so much love to scrap all of this bullshit and redo a proper string syntax, but alas this will have to wait until langver which is soft-blocked on bytecode and Rust14:11:53
@kfears:matrix.orgKFears& 🏳️‍⚧️ (they/them)Why is it soft-blocked on bytecode and Rust? Because the current thing is a horrible pain?14:12:43
@piegames:flausch.socialpiegamesthe current deprecations are a best effort attempt at removing a loaded gun from users' hands14:12:54
@piegames:flausch.socialpiegamesbasically, yes. I tried 1.5y ago at https://gerrit.lix.systems/c/lix/+/2359/1 and eventually gave up. Having to create new, versioned, AST nodes with different semantics etc was inacceptably bad, and would have made maintenance in the long term even worse14:14:25
@piegames:flausch.socialpiegamesso better to do it right from the beginning, clean up the codebase, put the correct abstraction layers in place, and then everything is much less unpleasant14:14:59
@kfears:matrix.orgKFears& 🏳️‍⚧️ (they/them)Fair enough14:17:02
@kfears:matrix.orgKFears& 🏳️‍⚧️ (they/them)We wouldn't attempt the C++ maneuver with a gun pointed to our head, so it's extremely impressive you tried that14:17:44
@whispers:catgirl.cloudwhispers [& it/fae]langver being the ability to experiment with changing the nix language while still being compatible with nix proper? (akin to rust's editions?)14:19:32
@whispers:catgirl.cloudwhispers [& it/fae] * 14:20:09
@k900:0upti.meK900Basically that, yes14:20:19
@piegames:flausch.socialpiegames
In reply to @kfears:matrix.org
We wouldn't attempt the C++ maneuver with a gun pointed to our head, so it's extremely impressive you tried that
"How bad could it be?"
14:32:06
@piegames:flausch.socialpiegamesOTOH I wouldn't be able to know where to go if I hadn't tried and failed that way14:32:35
@patrickdag:matrix.orgPatrick changed their display name from patrickdag to Patrick.14:52:01
@emilazy:matrix.orgemily (FWIW since ''\' is apparently still accepted I'm not sure I know of any issues with the escapes) 15:41:42
@emilazy:matrix.orgemily (though I wouldn't be super surprised if there's something with ''\$ or ''\\) 15:42:08
@aloisw:kde.orgaloiswThe only ones that I know of you can't write any more are when every line starts with at least one space.17:17:47
@emilazy:matrix.orgemily hmm, that's unfortunate. allow ''\<space> too? 18:01:35

Show newer messages


Back to Room ListRoom Version: 10