How do people from non-English speaking countries write code?

653 viewsOtherTechnology

Especially in Mandarin & Japanese speaking countries – for example: how does variable & function naming work if the language primarily consists of symbolic characters?

In: Technology

27 Answers

Anonymous 0 Comments

It depends on the computer language you are using. For example any language that supports unicode (like Java, C#, Ruby, etc.) you can create variables that are written in Chinese, Japanese, Arabic, etc. characters if you want. The compiler doesn’t care if you name something dog or 犬 or いぬ or even 🐕. As long as it doesn’t use a reserved character in the language it’s fair game. However its generally discouraged for code that might be used outside a given country/region as it limits the readability of code.

Plus the computer itself doesn’t care, whatever language the variables or function names are written in gets stripped away by the compiler and then further obfuscated when it gets converted into lower level code. Variable and function naming is entirely for the benefit of humans who read and write code.

You are viewing 1 out of 27 answers, click here to view all answers.