|
Posted by Colin Fine on 12/22/05 01:28
Wayne wrote:
> On 21 Dec 2005 01:03:48 -0800, tony@marston-home.demon.co.uk wrote:
>
>
>>Inconsistency is not a "real" problem as it does not cause the program
>>to produce wrong results.
>
>
> Correct. But I would argue that programs are meant to be read by
> humans at least as much as by the computer. Humans see a variable
> called $foo and $foO to be different.
>
Er ... no. Only if they have been exposed to case-sensitive languages or
systems.
In my view, case sensitivity was one of the biggest mistakes the Unixers
made in the first place.
However, it is now pretty common, though not universal.
Oddly, having argued this, I'm going to say something in favour of PHP5.
I'm not aware of all the ramifications (I haven't done a great deal of
PHP5 yet), but it always stuck in my craw having to say (in PHP 4):
class MyName ....
if (get_class($thing) == 'myname') ...
Now I've no objection to being *able* to do that, but being forced to
(because get_class($thing) will *never* equal 'MyName', which is what I
called the class) is wrong. So in this instance anyway, I prefer PHP5's
approach.
Colin
Navigation:
[Reply to this message]
|