Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6260 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67559 invoked by uid 1010); 7 Dec 2003 01:42:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67525 invoked from network); 7 Dec 2003 01:42:02 -0000 Received: from unknown (HELO longsword.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 7 Dec 2003 01:42:02 -0000 Received: from ip-66-80-117-254.nyc.megapath.net ([66.80.117.254] helo=[10.0.1.4]) by longsword.omniti.com with asmtp (TLSv1:RC4-SHA:128) (Exim 4.14) id 1ASnvu-0006uy-5E; Sat, 06 Dec 2003 20:42:02 -0500 In-Reply-To: <20031206174055.GA14153@prp0.prp.physik.tu-darmstadt.de> References: <5.1.0.14.2.20031203223915.02f7fb00@127.0.0.1> <200312061001.hB6A1E8M032486@mailserver3.hrz.tu-darmstadt.de> <20031206161404.GA13130@prp0.prp.physik.tu-darmstadt.de> <8F46C0C1-280B-11D8-B53A-000393B2B3C0@omniti.com> <20031206174055.GA14153@prp0.prp.physik.tu-darmstadt.de> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <8FEE0768-2856-11D8-B53A-000393B2B3C0@omniti.com> Content-Transfer-Encoding: 7bit Cc: internals@lists.php.net Date: Sat, 6 Dec 2003 20:42:05 -0500 To: Stefan Walk X-Mailer: Apple Mail (2.606) Subject: Re: [PHP-DEV] StudlyCaps From: george@omniti.com (George Schlossnagle) On Dec 6, 2003, at 12:40 PM, Stefan Walk wrote: > On Sat, Dec 06, 2003 at 11:45:12AM -0500, George Schlossnagle wrote: >>> Why should methods differ from functions in naming? That in itself is >>> inconsistency... >>> >>> I'm in favour of naming with underscores, simply because that was the >>> PHP way until now and it helps readability a lot. >> >> This is not really true. In PHP4 there were very few internal >> classes, >> so there was not much of a standard for naming class methods. > > Again, why should method naming differ from function naming? > >> It seems that most of the folks who are siding behind using >> underscores >> aren't very interested in using OO code, while the people who are >> using >> OOP extensively already support StudlyCaps. My opinion may be biased >> though. > > It is. One of the purest OO languages, Ruby, uses underscores to > separate words in method names (I have to admit though that constants > are named in CamelCase usually.) That's great, but we're not discussing Ruby, we're discussing PHP. No amount of underscores in Ruby effects the fact that PEAR, which is a defacto part of PHP, has standardized on StudlyCaps and has a large amount of code written that way. > >> Huh? That's awful. Who supports that sort of magic? > > That's not much more magic than case-insensitive functions. I'm not a fan of case-insensitivity. If you propose removing that in PHP5, you'll get my vote (and many others). George