| 11 Dec 2025 |
Qyriad | hyphens in identifiers is good actually, particularly for a package manager | 20:15:59 |
piegames | At the very least I think unary negation without parentheses should be deprecated | 20:16:18 |
Charles | so like just bias towards assuming no spaces means the whole thing is an identifier? | 20:16:21 |
Qyriad | yep | 20:16:33 |
Charles | interesting | 20:16:47 |
aloisw | NO | 20:16:52 |
Qyriad | subtraction is moderately rare in Nixlang code! i think this is a 100% fine syntactic tradeoff for the DSL | 20:17:08 |
Rutile (Commentator2.0) feel free to ping | thats why snake_case exists | 20:17:25 |
Qyriad | with hyphens in identifiers we can name variables like package names | 20:17:46 |
aloisw | And 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 | yeah that could stand some improvement | 20:18:46 |
aloisw | 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 | oh, no simply ban that too | 20:19:34 |
Qyriad | identifiers still cant *start* with a number | 20:19:44 |
Qyriad | gods no | 20:19:48 |
piegames | inb4 packages.1Password :D | 20:20:01 |
Qyriad | hmmm | 20:20:35 |
KFears (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 | 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 | In reply to @piegames:flausch.social inb4 packages.1Password :D packages.r"password" | 20:22:25 |
aloisw | ~~packages.\u0031password~~ | 20:24:07 |
piegames | Honestly, why not ban identifiers that end with -[number] while keeping alphanumerics after dashes? | 20:24:19 |
raitobezarius | In reply to @aloisw:julia0815.de NO My reaction while reading these last messages | 20:24:29 |
piegames | That would remove the most confusing case | 20:24:37 |
Qyriad | In reply to @piegames:flausch.social Honestly, why not ban identifiers that end with -[number] while keeping alphanumerics after dashes? agreed | 20:24:43 |
piegames | Do we think this is a footgun big enough to warrant a depraction as of now, or will this wait for langver? | 20:25:18 |
KFears (burnt out) | In reply to @qyriad:katesiria.org imo Nixlang2: we simply always require spaces around subtraction I very recently learned about https://gren-lang.org/ , which seems to do a lot of things right in a similar-ish direction | 20:25:47 |
aloisw | * packages.r"1password" | 20:25:49 |
aloisw | In reply to @aloisw:julia0815.de packages.r"1password" Yeah maybe not, r"" would be nice for regexes. | 20:30:23 |
Charles | maybe v"" for variable | 20:30:52 |