且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我应该避免在变量名中使用unicode字符吗?

更新时间:2022-06-11 05:33:36

不使用Unicode变量名称的一些原因:

A few reasons why not to use Unicode variable names:

  1. 这使人们很难打字
  2. 某些Unicode字符看上去与非母语使用者非常相似(请参见土耳其语I的情况)
  3. 某些编辑器可能无法正确显示它们
  4. https://twitter.com/Stephan007/status/481001490463866880/photo/1
  1. It makes it hard for people to type them
  2. Some Unicode characters look very similar to non-native speaker (see the case of the Turkish I)
  3. Some editors might not display them correctly
  4. https://twitter.com/Stephan007/status/481001490463866880/photo/1