4 ms·
I is not capital of i in Turkish. Instead, İ is capital of i and I is capital of ı. They are two different letters.
by celalo 14y ago
I is not capital of i in Turkish. Instead, İ is capital of i and I is capital of ı. They are two different letters.
- endtime 14y agoAnd this should affect class names why?
- batterseapower 14y agoApparently identifier lookup is done case-insensitively...
- deleted 14y ago[deleted]
- Raticide 14y agoNo other language has this problem. The locale is irrelevant. The class name is just a series of bytes; it shouldn't need to transform the case.
- Permit 14y agoI believe it's because PHP supports case insensitive class names. It sounds like this will not change: https://bugs.php.net/bug.php?id=26575&edit=1 https://bugs.php.net/bug.php?id=26575&edit=1
- shuzchen 14y agoClass and function names are case insensitive. But variables are not. Go figure that one out.
- RobAley 14y agoI'd prefer them both to be one way or the other, but if they have to be different this is the right way to do it. For instance, functions can check to see what name the were called by (and process the call differently if we want to distinguish between cases). Variables can't do that so we must explicitly distinguish between them.
- pilif 14y agoTrue for languages which are case-sensitive. Other languages like PHP (partially), BASIC or Pascal are case insensitive, so lookup has to be done case-insensitively which means that case has to be normalized, so transforming case of identifier becomes necessary. If it can't be done consistently, that's a problem.