Re:C++ Modules Might Be Dead-On-Arrival
by Sharlin on Monday January 28, 2019 @03:47AM
(#19016040)
That's a false dichotomy. If you were talking about restricting identifiers to codepoints in the Unicode "letter" categories, you might have a point. (Nb. there are approximately 160,000 "letter" codepoints in Unicode, the vast majority of which being CJK ideograms.)
[ Parent
| on HN ]
Re:C++ Modules Might Be Dead-On-Arrival
by WalterBright on Monday January 28, 2019 @04:07AM
(#19016117)
D allows the same Unicode codepoints as identifier characters as does C and C++.
No, I'm saying restricting identifiers to AZaz09_.
I don't see a dichotomy (much less a false one). What are the two options I separate artificially?
I'm saying just don't impose regional alphabets (other than AZaz that's already par for the course with the syntax of all major programming languages anyway) and regional words into source code.
You disregarded 99.99% of Unicode as "math symbols and poop emoji". That's just a ridiculously biased Anglocentric viewpoint. It's 2019; there's zero reason to force people to stick to either a subset of their native script, or a completely foreign one, when naming identifiers in a programming language.