Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19794 invoked by uid 1010); 2 Dec 2003 18:59:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19770 invoked from network); 2 Dec 2003 18:59:16 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 2 Dec 2003 18:59:16 -0000 Received: from ip-66-80-117-2.nyc.megapath.net ([66.80.117.2] helo=[10.80.116.129]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1ARFjw-0007kx-7T; Tue, 02 Dec 2003 13:59:16 -0500 In-Reply-To: References: <34245E0A-24F1-11D8-A17A-000393B2B3C0@omniti.com> <44B57A25-24F7-11D8-A17A-000393B2B3C0@omniti.com> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Content-Transfer-Encoding: 7bit Cc: Sebastian Bergmann , internals@lists.php.net Date: Tue, 2 Dec 2003 13:59:28 -0500 To: Adam Maccabee Trachtenberg X-Mailer: Apple Mail (2.606) Subject: Re: [PHP-DEV] reflection api -> camelcaps From: george@omniti.com (George Schlossnagle) On Dec 2, 2003, at 1:51 PM, Adam Maccabee Trachtenberg wrote: > On Tue, 2 Dec 2003, George Schlossnagle wrote: > >> On Dec 2, 2003, at 1:22 PM, Sebastian Bergmann wrote: >> >>> George Schlossnagle wrote: >>>> I'd like to convert the reflection API to the current php standard >>>> of >>>> CamelCaps (instead of underscores) for it's class and method names. >>> >>> Why deviate from PEAR CS in this? >> >> Well, as the classes are builtin's it's not so clear to me that the >> packag naming rules apply directly. But this is a sound objection. > > This raises my question of my the new Exception class uses CamelCaps > instead > of underscores? > > For instance, its methods are: getMessage(), getCode(), etc. > > I don't think any other built-in method or packaged extension does > this. I've been re-pointed to CODING_STANDARDS, which changed since last I looked. Classnames get underscores, method names get camelcaps. George