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.
Latest Answers