3 ms·
D has support for Unicode characters in identifiers, pretty much the same as C does. But now I think that was probably a mistake. Some people use it, but nobody
by WalterBright 7y ago
D has support for Unicode characters in identifiers, pretty much the same as C does. But now I think that was probably a mistake. Some people use it, but nobody who wants their code to be editable by the larger community.
- robocat 7y agoJavaScript has virtually always supported Unicode variable names (well, the basic multilingual plane). https://mathiasbynens.be/notes/javascript-identifiers https://mathiasbynens.be/notes/javascript-identifiers
- WalterBright 7y agoSure, but do people in general use them?
- robocat 7y agoIf you don't know English (a lot of people) and you are writing a script for a web page, you would use your own language. Although compression tools replace the majority of symbols with short Ascii symbols, so it may not show in the final packed code. It looks like the closure compiler emits Ascii only, using escapes for Unicode symbols that are not transformed.