4 ms·
You are aware other languages exist? Some of which don't even use the Latin script?
by guipsp 1y ago
You are aware other languages exist? Some of which don't even use the Latin script?
- Y_Y 1y agoWhat; like APL‽
- nottorp 1y agoDunno about the OP but I'm very aware as I'm not an english speaker. I still don't want anything as unpredictable as Unicode in my code. How many different encodings will display as the same variable name and how is the compiler supposed to decide? If you're thinking of comments and user facing strings, the OP already excluded those.
- cryptonector 1y agoThe language and compiler & linker should reject Zalgo in identifiers, and they should reject confusable script mixes in identifiers, but otherwise they treat all equivalent strings as equivalent. To make it easier on the linker compilers should normalize all symbols to one common form (e.g., NFC).
- account42 1y agoAnd those are not programming languages, or at least not the C programming language which only needs a very limited character set.
- steveklabnik 1y agoC does allow for limited unicode in identifiers, though you need to use the \u prefix and write the code out. Compilers like clang let it work like C++ and follow TR31, though this is nonstandard.
- account42 1y agoYes, these are the relatively recent additions being discussed here. C and C++ managed just fine for ages without them before the committees decided that scoring brownie points with performative changes was more important than security and readability of source files.