Re: Complete case-sensitivity in PHP

From: Date: Fri, 20 Apr 2012 18:53:49 +0000
Subject: Re: Complete case-sensitivity in PHP
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-60245@lists.php.net to get a copy of this message
On 4/20/2012 9:48 PM, C.Koy wrote:
Java, C#, Python, Ruby... are all case-sensitive. This is not a feature to be (mis-)used so that one can have a function named myfunc() and MyFunc() in the same code base. Case-insensitive class/function/interface names is a confusion for everyone with non-PHP development experience. There's not a modern OO platform that defines an interface named 'IDispatch' and later allows it to be referenced as 'idispatch' or 'iDispatch'. And PHP is becoming more OO with every major release. Overall, full case-sensitivity seems to be a natural step in PHP's evolution.
Let me add this: case-insensitivity is a burden for tool developers. For example, any ctags-based editor/IDE out there won't find the definition of myfunc() when you request "Goto tag's definition" if it's defined as MyFunc().

« previous php.internals (#60245) next »