Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32861 invoked from network); 23 Mar 2003 02:41:16 -0000 Received: from unknown (HELO carmine.bestweb.net) (209.94.102.73) by pb1.pair.com with SMTP; 23 Mar 2003 02:41:16 -0000 Received: from [192.168.1.100] (unknown [216.179.71.153]) by carmine.bestweb.net (Postfix) with ESMTP id 9D00023450; Sat, 22 Mar 2003 21:41:19 -0500 (EST) To: Derick Rethans Cc: Moriyoshi Koizumi , internals@lists.php.net In-Reply-To: References: <1048367260.848.1147.camel@hasele> <20030323090240my5O%!@at.wakwak.com> <1048376595.847.1158.camel@hasele> Content-Type: text/plain Organization: Message-ID: <1048386150.848.1293.camel@hasele> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 22 Mar 2003 21:22:30 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] default exceptions, interfaces, etc. From: sterling@bumblebury.com (Sterling Hughes) On Sat, 2003-03-22 at 21:33, Derick Rethans wrote: > On Sun, 22 Mar 2003, Sterling Hughes wrote: > > > On Sat, 2003-03-22 at 19:02, Moriyoshi Koizumi wrote: > > > Hi, > > > > > > As per naming convention, I think it'd be nice if the methods were > > > named as: > > > > > > getmessage => get_message > > > getcode => get_code > > > > > > If those are corrected, +1 for this feature. > > > > > > > I was thinking of that - I would personally prefer get_message() and > > get_code() naming, but that goes against pear's naming conventions, and > > I want this to integrate well with pear (as a base class.) > > It's a PHP function, not PEAR code, so it should follow the PHP naming > style. > As I mentioned to Marcus, there are no naming conventions for OO code, only procedural code (in PHP). Also, compliance with PEAR is a pragmatic solution, because presumably all their code will be inheriting from Exception. The largest, and the official OO library should be in-sync with standard practices (and we have none yet regarding OO code.) -Sterling > Derick -- "A business that makes nothing but money is a poor kind of business." - Henry Ford