3 ms·
Urgh. I wish languages wouldn't do this. Things which look different should be different. At least it's case sensitive for the first letter, which means that t
by david-given 11y ago
Urgh. I wish languages wouldn't do this. Things which look different should be different.
At least it's case sensitive for the first letter, which means that the traditional lowercase-for-identifiers, capitalised-for-types naming scheme works.
I've tried programming in Ada, which has case insensitive identifiers; it was deeply painful.
Edit: Plus, of course, case sensitivity is locale dependent. Are I and i the same letter? Not if you're Turkish. (Upper case i is İ; lower case I is ı.)
Yes, this matters. http://www.theinquirer.net/inquirer/news/1017243/cellphone-localisation-glitch http://www.theinquirer.net/inquirer/news/1017243/cellphone-l...
- dom96 11y agoI would be interested to hear your experiences with Ada, what in particular made case insensitive identifiers painful. Can you give some examples?
- throwaway999888 11y agoSo uppercase Turkish `ı` is the same as ASCII `I`?. Go and Haskell also have some special (unconventional) treatment of capital letters, which probably make them biased towards the English language.
- lifthrasiir 11y agoYes. And uppercase Turkish `i` (which is same to ASCII `i`) is not ASCII `I` but Turkish `İ`. Obviously this behavior is very locale-specific. > Go and Haskell also have some special (unconventional) treatment of capital letters, which probably make them biased towards the English language. In Ruby an identifier is considered to start with an uppercase letter when it really starts with an uppercase letter or underscore; that probably is the best compromise for unicase scripts including CJK scripts.
- throwaway999888 11y agoIt's a weird language bug. I wish English (and my own tongue) was as consistent with the dots as Turkish is. ;)