Re: Naming convensions

From: Date: Wed, 03 Aug 2005 18:27:21 +0000
Subject: Re: Naming convensions
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39177@lists.php.net to get a copy of this message
On 8/3/2005 8:23 PM, Joe Stump spake the following words: >> - Fixed coding standards, which included variable name changes (ie. >> http_headers to httpHeaders) >> >> I think both $some_var and $someVar are acceptable, there's no strict >> rule for the variables stated here >> http://pear.php.net/manual/en/standards.naming.php >> >> Is it OK for a PEAR package to use $some_var? > > The reason I changed this was because EVERY other variable and function > in Net_Curl was fooBar and not foo_bar and the CS shows a clear > preference for humpBack. I figured since the last stable release was > 0.2 and 1.0.1beta1 was never released stable I'd go ahead and formalize > the API, but include backwards compatibility, which doesn't bomb out, > but does throw a notice informing the developer that they're using > deprecated variables. That's the right way to do it :) I thought I recalled that's how you'd solved it. At any rate, you've been doing a great job. Klaus

« previous php.pear.dev (#39177) next »