Banning unicode is not silly. Unicode is dreadful, and most programs will never be translated. 99% of the time it is literally pointless and people would be better served by using local character encodings.
EDIT: Isn't it interesting how saying you dislike unicode causes everyone to dogpile you? It feels like all of you have been brainwashed. It is startlingly creepy. I suggest you freaks go to therapy.
No. We had that already with all those ISO encodings and it's hell.
What is the local encoding for Germany for example? We have our own Umlaut-characters, but what if some spaniard called Piñera wants to live here? And what about André, Çem, etc.?
So you end up with an encoding that looks almost identical to Unicode/UTF-8 anyway.
What is the local encoding for Germany for example? We have our own Umlaut-characters, but what if some spaniard called Piñera wants to live here? And what about André, Çem, etc.?
There's a middle ground here: only permit full Unicode between a programming language's string delimiters, ie. typically between two " characters, and the rest of the grammar must use only printable ASCII characters. This takes care of all input/output issues like the example you mention, without introducing homoglyph and invisible character vulnerabilities into a language's grammar.
Code isn't the same as data. You can have Mr. Piñera living on the Einbahnstraße but you name the columns lastname and street. (In English, because code should be written in English anyway.)
It's perfectly sane to restrict identifiers to ASCII, or preferably even a subset of that. Even APL of all languages restricts identifiers to letters, numbers, and a handful of whitelisted punctuation characters.
In which the programming subreddit tries to solve the underhanded C competition by saying a compiler should shit the bed if you add Tools > Preferences > Language > 日本語.
And if I try to copy-paste code from a StackOverflow user in Russia, I guess I can go fuck myself.
99% of programs do not need to do these things, and it is trivial to make 7-bit ASCII let UTF-8 characters pass through harmlessly. As an English speaker that satisfies me. Other peoples can resolve the problem for themselves.
The 1% of software that actually needs something like unicode obviously should use it, but nothing else.
Sit down for this one, but it might shock you to learn that there are other countries on this planet. It's "literally pointless" for you. Get it right.
-83
u/PL_Design Nov 10 '21 edited Nov 10 '21
Banning unicode is not silly. Unicode is dreadful, and most programs will never be translated. 99% of the time it is literally pointless and people would be better served by using local character encodings.
EDIT: Isn't it interesting how saying you dislike unicode causes everyone to dogpile you? It feels like all of you have been brainwashed. It is startlingly creepy. I suggest you freaks go to therapy.