Re: [PHP4BETA] CVS update: php4/ext/pcre

From: Date: Tue, 25 May 1999 21:13:51 +0000
Subject: Re: [PHP4BETA] CVS update: php4/ext/pcre
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1034@lists.php.net to get a copy of this message
At 15:48 25/05/99 -0400, Rasmus Lerdorf wrote:
I think having aliases when not for backwards compatibility is a bad thing to do. We should decide on one set of function names and stick to them. Personally I prefer the preg over pcre. I think it'll be more intuitive for users. I agree completely on the aliases thing. But it sort of was for backward compatibility purposes. We have ereg() and ereg_replace() currently. The proposal was to introduce: preg_match() and preg_replace() where preg_match() would be equivalent in functionality to ereg(). This is where I suggested we might want to make an alias such that preg() did the same as preg_match() to help the folks who would expect the preg() function to exist. I guess not a pure backward compatibility alias, but close. I definitely wasn't suggesting aliasing pcre_* to preg_*
Hmm that's a tough one then. I do prefer *_match. I always thought the old ereg() to be confusing. I'm kind of undecided on the issue now. I just know I like preg more than pcre :) And *_match() more than *(). But I'm not sure about what aliases I'd add if any. Andi --- Andi Gutmans <andi@zend.com> ICQ: 1568297 -- PHP 4 Beta

« previous php.version4 (#1034) next »