5 ms·
Speaking generally, not specific to golang, but no serious programmers will use non-ASCII identifiers. Why? I think the main reason is that it's a hassle to inp
by edwinyzh 12y ago
Speaking generally, not specific to golang, but no serious programmers will use non-ASCII identifiers. Why? I think the main reason is that it's a hassle to input Chinese characters.
- alfiedotwtf 12y agoYou do know that there are programmers that live outside of English speaking countries that use non-standard US layout right :) http://www.dcothai.com/download/lowkey.gif http://www.dcothai.com/download/lowkey.gif http://upload.wikimedia.org/wikipedia/commons/2/20/Keyboard_layout_Chinese_Traditional.png http://upload.wikimedia.org/wikipedia/commons/2/20/Keyboard_...
- _pmf_ 12y ago> You know that there are programmers that live outside of English countries? I don't think the existence of sentient life outside of the US is common knowledge in Silicon Valley.
- AYBABTME 12y agoI think it's beyond nationalism. Programming is done in english because its the common tongue, and the world in which programmers grow is distributed and quasi-borderless, so there's interest in using a tongue common to all. There's no point in not writing code in english, it's a self defeating endeavor. I'm from a non English speaking nation and I originally used an non-standard US layout, although I changed to US layout when I realized doing otherwise was an exercise in futility.
- pluma 12y agoSure, but China is a walled garden. English may be the lingua franca of programming, but China is large enough (and isolated enough) that Chinese programmers can likely get by without using English at all.
- kuschku 12y agoEven in Germany a lot of people and even companies write code in pure German, using purely German comments and variables. (Luckily German has only 7 additional codepoints compared to ASCII).
- pluma 12y agoYes, although I think universities are partly to blame. Somehow lots of professors seem to think writing code in German makes it more science-y (probably because algorithms are generally expressed in German pseudo-code too).
- edwinyzh 12y agoAh, a non-ASCII keyboard layout is quite different from the software input method for hieroglyph languages like Chinese. For example, "myFile" in Chinese is "我的文件", and you have to enter the following key strokes in order to enter it: Ctrl+Spacebar, wo de wen jian, Ctrl+Spacebar. I guess you can see the overhead.