4 ms·
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
by rurounijones 13y 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")
- riffraff 13y agoI remember ruby code circa 2001, there was a lot of it with kanji in in comments, which I found fascinating :)