Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24813 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33774 invoked by uid 1010); 21 Jul 2006 09:32:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33757 invoked from network); 21 Jul 2006 09:32:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 09:32:40 -0000 X-PHP-List-Original-Sender: lsmith@php.net X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.5 (sometimes 2.4) (4) Received: from ([212.112.227.169:44153] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5C/64-29121-83F90C44 for ; Fri, 21 Jul 2006 05:32:40 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 270CBDF00F4; Fri, 21 Jul 2006 12:15:29 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (flottensignalgeber [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28419-07; Fri, 21 Jul 2006 12:15:28 +0200 (CEST) Received: from [127.0.0.1] (i577B481F.versanet.de [87.123.72.31]) by ipx11223.ipxserver.de (Postfix) with ESMTP id A714ADF000E; Fri, 21 Jul 2006 12:15:27 +0200 (CEST) Message-ID: <44C09F31.9090505@php.net> Date: Fri, 21 Jul 2006 11:32:33 +0200 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Derick Rethans Cc: PHP Developers Mailing List References: <10845a340607210208l2ffea986ndd77a0a0c50a9965@mail.gmail.com> <44C09BE2.7000201@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: lsmith@php.net (Lukas Smith) Derick Rethans wrote: > On Fri, 21 Jul 2006, Lukas Smith wrote: > >> Richard Quadling wrote: >>> I agree with this point. The sub class is a valid entity in its own >>> right. The methods (and the parameters) it has are part of that class. >>> If they overwrite a parent class's method, then fine. Instance of >>> either class would have different parameters for the same named >>> method. >> Its not about being "right". Acedemically Marcus changes are correct. The >> question is just if we want to force this way of working onto PHP, or if it >> makes more sense to make it optional. > > I would say that if you want to use it in the "wrong" lenient way that > you need to mark your classes as such and not the other way around. This > might also have the effect that people see PHP as a better language > (because of the OO stuff is "correct" by default. Or it will mean that the established user base gets ticked off and the other people see PHP as just playing catch up to Java. Now is probably the time to hire a consulting firm ;) regards, Lukas