Re: Mixed-Case Class Names (was Re: [PEAR-DEV] [PEPr] +1 for Payment::Payment_PayPalSoap)

From: Date: Fri, 22 Aug 2008 08:28:21 +0000
Subject: Re: Mixed-Case Class Names (was Re: [PEAR-DEV] [PEPr] +1 for Payment::Payment_PayPalSoap)
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-50614@lists.php.net to get a copy of this message
On Thu, Aug 21, 2008 at 11:11 PM, Paul M Jones <pmjones88@gmail.com> wrote: > For what it's worth, I'd suggest using only-first-letter-caps. Makes it > easier to transform between formats (all-lower-case, all-upper-case, and > dash/space/underscore separated) programmatically. > > E.g., "Pear_Http_Request" is easy to convert to "pear-http-request", and > then back to "Pear_Http_Request", using only strtolower(), str_replace(), > and ucwords(). "Pear_HTTP_Request" is harder, because you have to know in > advance that the middle part is all-caps. > > How often would you do have to do that? Don't know, just speculating. (Do What are use cases for this at all? Martin

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