by Alupis · 12y ago · 0 comments
>Naming Constants and Variables
>You can use almost any character you like for constant and
>variable names, including Unicode characters:
>let π = 3.14159
>let 你好 = "你好世界"
>let 🐶🐮 = "dogcow"
https://developer.apple.com/library/prerelease/ios/documenta...
My position is that it's the language's job to allow expression of ideas and not its job to police or disallow bad sentences. I think such a thing [EDIT: disallowing bad sentences] is impossible and leads to COBOL-like languages. (Compilers can have options for coding standards, like "house rules" but I don't think it's the language's role.)
Basically using unicode characters is comparable to purposeful obfuscation, are difficult to type (no keyboard i'm aware of has a "cow" key), difficult to read/remember, and may become wrongly converted if the code is copy/pasted into a text editor not supporting that character.
Now, I don't think this constituted as a "strong criticism" nor warranted the downvote nor the expletive.