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

In Javascript, many unicode characters are allowed [0], so háćḱéŕŃéẃś is a valid variable name [1].

Note: The number of іllэБіъlэVаѓіаъlэИамэѕ [2] used in your production code is inversely proportional to the number of friends you'll make in the maintenance team.

[0] https://mathiasbynens.be/notes/javascript-identifiers

[1] https://mothereff.in/js-variables#h%C3%A1%C4%87%E1%B8%B1%C3%...

[2] http://www.panix.com/~eli/unicode/convert.cgi?text=illegible...



I had quite a lot of fun defining 汉字 variable names in C#. Though definitely not something to put into production code of course...




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

Search: