Re: Resurrecting the Function Renaming Thread
| From: | Zak Greant | Date: | Wed, 07 Feb 2001 19:22:47 +0000 |
| Subject: | Re: Resurrecting the Function Renaming Thread | ||
| References: | 1 2 3 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2309@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
[snip]
> James is right.. PHP was never designed and implemented in a clean room
> by a single person (unlike Python) - it's a glue language that's been
> evolving according to what its users wanted to take from and give to it.
Hence the need for some pruning :)
> That said, standardizing function names seems like a good idea - but it
> will only help newcomers - experienced PHP coders will not benefit from
> this change.
I disagree - experience coders make mistakes based on inconsistent
names often enough.
> We also have to take into account the pros and cons of this
> change - once it's done we will suddenly have strlen() _and_ str_len()
> and newcomers may be confused...
I don't think so. When a user encounters a function that they can't
grok, they go to the manual. Having the function that they reference
be an alias for another function is not too bad to deal with -
especially
if there are tools to convert legacy scripts to modern scripts.
These tools could even be built into PHP language so that new users
don't need to worry about perl, awk, whatever...
--zak