@korreckj328@pancake 50+ year old languages support this ... frankly, this is a design flaw in how "modern" languages treat "symbols" / "names" or whatever you wish to call it.
@pancake There are "sane restrictions" on symbols, if you do not quote them it should generally be the normal A-Za-z0-9 rule; but quoted ones should accept anything that can be accepted by the language.
I see nothing wrong with having spaces, or emojis in file names. It is like lesser languages do not allowed for hyphens in symbols ... It is a silly limitation, that has no reason to exist.
@amszmidt@korreckj328 imho defining some sane restrictions on symbols is somehow cleaner. It’s like having emojis or spaces in filenames. Surely we can even make files with slashes but it feels wrong
@smlckz I mean, some languages already allow for that. E.g., in Lisp you could "trivially" have a readtable thing that would do something like auto translating snake_case to kebab-case.
@amszmidt@pancake@korreckj328 I wonder if we’ll get to see the day when syntax qua syntax could be treated in the same manner as coding style (spaces vs. tabs, camelCase vs. snake_case vs. kebab-case vs. …), allowing for multiple “views” (in the database sense) of the same code for different choices of syntax, when each developer can locally use their preferred syntax and coding style and seamlessly collaborate with each other.. Is this too fantastical? We can already see a pattern of convergence towards certain features in the “most popular” programming languages: destructuring assignment, pattern matching, Option and Result types and so on.. it should be possible, right?
@smlckz In Lisp this is very common, files can have separate read-tables, or bases, or whatever. Being able to change case of symbols, or the base or numbers is essentially the same in my book. Sometimes you _really_ want to print everything in octal or hex, or have things read in octal or hex. Most languages only allow extra syntax (and sometimes confusing, 0744 vs 744 ...). In Lisp you can change the read/print base of integers very easily.
You should understand that these are quite low-level mechanisms. What I’m imagining would need some sufficient “framework” or “infrastructure”, which would make it as easy as installing and tweaking editor themes or plugins. I wonder if there are people who are interested in making this possible; if so, who they are and how much progress was made.
@smlckz You could do the same with case of symbols, by having special purpose read tables, and all you do is "Readtable: CamelCase", and ta da .. fooCase gets implicitly converted to foo-case or whatever is "canonical".