News for hackers. Stuff that matters.
Re:Fun with Unicode in Swift by hyperpape on Saturday December 15, 2018 @12:03PM (#18689167)
The rules for unicode normalization only make a difference when you use them. As an English language programmer, they'll probably never affect you, and you're free to use your linter to require all code in your projects use only ASCII identifiers, just to prevent any potential problems.

Perl apparently handles this well: you have to declare that a file uses a particular script if you're using non-ASCII identifiers.

Re:Fun with Unicode in Swift by kazinator on Saturday December 15, 2018 @01:05PM (#18689520)
> you have to declare that a file uses a particular script

So, no calling functions in other files that use other scripts?

A reasonable restriction is to demand that all characters in any one identifier are from the same script, and that purely typographical devices such as ligatures are banned.

Re:Fun with Unicode in Swift by hyperpape on Saturday December 15, 2018 @02:23PM (#18689882)
If you’re calling from another file you edit the pragmas in the file you’re calling from. Seems easy enough.

I actually am not quite clear on the details: one source made it sound like a limited set of scripts was enabled by default. Perhaps someone who knows Perl better can clarify.

Re:Fun with Unicode in Swift by kazinator on Saturday December 15, 2018 @02:51PM (#18690028)
If I'm in a Japanese file and want to call a function in a Greek file, I don't see how I can avoid writing a Greek identifier in the middle of the Japanese.
Re:Fun with Unicode in Swift by hyperpape on Saturday December 15, 2018 @03:22PM (#18690162)
You can list multiple scripts:

    use utf8 ("Greek", "Cyrillic");
This took me a while, but I see how my original post was ambiguous.