Hacker News new | ask | show | jobs
by rurounijones 4669 days ago
Ruby 1.9 and 2.0 supports Unicode variables (1.9 requires a special line at the top of the file).

Outside of some cute usage of the Pi symbol (because he could) I haven't seen it used in the wild.

Most Japanese programmers I know / whose code I have seen just use the romaji text for their variables names if they are still thinking in Japanese. (i.e. "tesuto" instead of "test" or "yuza_banngo" for "user_id")

1 comments

I remember ruby code circa 2001, there was a lot of it with kanji in in comments, which I found fascinating :)