Re: Resurrecting the Function Renaming Thread

From: Date: Wed, 07 Feb 2001 18:47:50 +0000
Subject: Re: Resurrecting the Function Renaming Thread
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-2304@lists.php.net to get a copy of this message
At 19:33 7.2. 2001, Sascha Schumann wrote the following: -------------------------------------------------------------- >> >(maybe one or two)... >> >> I very strongly disagree. I even think that if the conclusion will >> be leave str* as they are, I would raise the question of renaming >> str_pad (and the other few str_* functions) to be changed to strpad >> etc. There should be some logic. Whatever it is. > > str* functions are borrowed from C. > > str_* are our own inventions. > > - Sascha Sascha, with all respect to you (and I have plenty of it), I don't see how that matters. Other than hinting "hey, look, we're so good we invented this!" it's only confusing. What's the benefit of the distinction in daily use of PHP? If I terribly simplify the matter, there are basically two different approaches: * C is nice, but PHP isn't C. Go, underscore, go! * PHP is C's nephew, and should be as close to it as possible. I don't see where concurrent existence of strlen with str_pad fits in this model. If we agree that the C logic is names like strlen, strdup and alike, str_pad doesn't fit in it at all. ____________________________________________________________ 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

« previous php.qa (#2304) next »