RE: [PHP-QA] Resurrecting the Function Renaming Thread
| From: | Cynic | Date: | Wed, 07 Feb 2001 16:19:53 +0000 |
| Subject: | RE: [PHP-QA] Resurrecting the Function Renaming Thread | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2285@lists.php.net to get a copy of this message | ||
At 16:59 7.2. 2001, James Moore wrote the following:
--------------------------------------------------------------
>> Can this be summed up to "alias, but never deprecate the
>> original names"?
>>
>> BTW, one of the major problems PHP suffers is that if you
>> _don't_ come from C or Perl (novice programmer or VB, e. g.),
>> you feel terribly, because PHP is one hell of a mess.
>> One _hell_ of a _mess_.
>
>This is true but it sure as hell makes understanding C code easier, If you
>are familiar with PHP then look at C code you can at least get the general
>gist of whats going on (ignoring structs and pointers etc) and there is a
>lot to be said for this,
I agree that PHP is a good learning tool for C. But that's not
its purpose.
>anyway you sure as hell wont get all developers
>agreeing to depreciate old names and introduce hundreds of new names into
>the name space. Start with a clean up and YES alias with systematic names
>but I sure as hell do not want to have to relearn hundreds of function
>names, its bad enough atm when I hack in C I find myself using PHP syntax
>and function names and vica versa.
My experience suggests that the more similar two different
things are the more people tend to mix them. If PHP was even
more similar to C, the confusion would grow, not diminish -
and I don't mean the confusion "what's strtok called in this
language", but "heck, put '$' in front of a C variable again".
>DONT SCREW UP WHAT WORKS, and dont give
>options for people to disable old function names, I want to know my current
>scripts will work on ALL versions of PHP not just some.
>
>James
Will your scripts work in a register_globals = Off &
error_reporting = E_ALL & display_errors = On environment?
Will they work under safe_mode? Will they work on win32?
All of this is "just" a matter of finding a sensible compromise.
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz