Why does Java allow control characters in its identifiers?

后端 未结 3 924
梦如初夏
梦如初夏 2020-12-23 17:44

The Mystery

In exploring precisely which characters were permitted in Java identifiers, I have stumbled upon something so extremely curious that it seems nearly ce

3条回答
  •  自闭症患者
    2020-12-23 17:57

    I don't see what's the big deal. How does it affect you in anyway?

    If a developer wants to obfuscate his code, he can do it with ASCII.

    If a developer wants to make his code understandable, he will use the lingua franca of the industry: English. Not only identifiers are ASCII only, but also from common English words. Otherwise, nobody will use or read his code, he can use whatever crazy characters he likes.

提交回复
热议问题