Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JavaScript has virtually always supported Unicode variable names (well, the basic multilingual plane).

https://mathiasbynens.be/notes/javascript-identifiers



Sure, but do people in general use them?


If 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: