Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24814 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36336 invoked by uid 1010); 21 Jul 2006 09:38:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36321 invoked from network); 21 Jul 2006 09:38:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2006 09:38:13 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.166.180 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.180:60118] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 9D/B4-29121-380A0C44 for ; Fri, 21 Jul 2006 05:38:12 -0400 Received: by py-out-1112.google.com with SMTP id x31so82206pye for ; Fri, 21 Jul 2006 02:38:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mmEDGz4XzEEoCugiwS1MIc/LqYhmcgFvumjl1ZJBwY5PKfOWNsLLHBrKe3NBG3ImZLlXyx/VsQHGhoBQOawRN+hmObpLVJQsmNXR+erwnzlkOO3FB3l1WILmcElGgFvsgzZiTKEMCptbQScpmZrKhBlXptnhrmUaDpidUdGAP5Y= Received: by 10.35.18.4 with SMTP id v4mr845644pyi; Fri, 21 Jul 2006 02:38:08 -0700 (PDT) Received: by 10.35.93.18 with HTTP; Fri, 21 Jul 2006 02:38:08 -0700 (PDT) Message-ID: <10845a340607210238w6728a522lecbf761a2c9ac51b@mail.gmail.com> Date: Fri, 21 Jul 2006 10:38:08 +0100 Reply-To: RQuadling@GoogleMail.com To: "PHP Developers Mailing List" In-Reply-To: <44C09F31.9090505@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10845a340607210208l2ffea986ndd77a0a0c50a9965@mail.gmail.com> <44C09BE2.7000201@php.net> <44C09F31.9090505@php.net> Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: rquadling@googlemail.com ("Richard Quadling") I see it as catch up to OOP. I've never used Java. I've used Delphi though. I suppose the main issue is that userland sees OOP and expects things to be similar to other OOPs they've used. They're blinkered as to why it ISN'T the same! Like discrete setters/getters providing accesssibilty or being able to promote/demote visibility via inheritence. On 21/07/06, Lukas Smith wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"