Posted by Tony Marston on 10/12/29 11:36
"Wayne" <not@here.com> wrote in message
news:4jlrq1ho73r6761idr20d5c791u8pae2fe@4ax.com...
> On Sat, 24 Dec 2005 18:09:24 +0000, Colin Fine
> <news@kindness.demon.co.uk> wrote:
>
>>WHY IS IT PROGRESS?????
>>
>>PHP5 is a vast improvement on PHP4 in a number of ways. But they could
>>equally well have resolved the inconsistency between variable and
>>function names by removing case sensitivity for the former.
>
> I'd say that adding case-sensitivity breaks less code than removing
> case-sensitivity would. Adding case-sensitivity in PHP might create a
> alot of hard errors (calling functions with the wrong case, for
> example) but it will never go silently. Removing case-sensitivity
> from variables can easily create situations where you silently end up
> with incorrect results.
Only if you deliberately have the same variable name in the same scope in
different mixtures of upper and lower case, thus producing different
variables. How many programmers do you know who would do that?
[Back to original message]
|