Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10602 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50692 invoked by uid 1010); 18 Jun 2004 19:15:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49816 invoked from network); 18 Jun 2004 19:15:45 -0000 Received: from unknown (HELO hoggle.dreamhost.com) (66.33.197.5) by pb1.pair.com with SMTP; 18 Jun 2004 19:15:45 -0000 Received: from [192.168.0.152] (mail.appliedsec.com [69.17.65.231]) by hoggle.dreamhost.com (Postfix) with ESMTP id F28485385E; Fri, 18 Jun 2004 12:15:44 -0700 (PDT) Message-ID: <40D33F63.6050105@velum.net> Date: Fri, 18 Jun 2004 15:15:47 -0400 User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcus Boerger Cc: internals@lists.php.net References: <20040615112747.27402.qmail@pb1.pair.com> <40CEDECA.9040600@cschneid.com> <40D05892.6090804@memefeeder.com> <913185304.20040616211716@marcus-boerger.de> <40D19B3E.4030802@memefeeder.com> <4210590559.20040617205826@marcus-boerger.de> <40D2FF04.3010003@velum.net> <8710223113.20040618204047@marcus-boerger.de> In-Reply-To: <8710223113.20040618204047@marcus-boerger.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: ClassHints and NULL From: hans@velum.net (Hans Lellelid) Marcus Boerger wrote: >>Here is a slightly related example from my code [....] -- and it >>would be nice if I could use optional paramters w/ typehints. > > > IMO thats the only valid point you brought up here. Another thing missing > is that in derived classes the typehints should be able to accept > superclasses like the following patch does: > http://marcus-boerger.de/php/ext/ze2/ze2-type-hint-classes-20040327.diff.txt > [This patch may be a little bit outdated though :-) ] > Ok, well yes my message sorta morphed as I realized that the central problem was my subclasses with fewer params in method sig than the parent class. But the optional typehinted params are very useful & glad that'll be revisited. >>Of course, namespaces are more important than anything ;) > > > hehe, could you live with packages? Probably! yeah :) -- what's the difference? Are namespaces more like what's implement in C#/.NET (i.e. no necessary correspondence between namespace and actual assembly used to provide them) and packages something more like Java? Forgive my ignorance & if there's already a thread on this, just say so :) Thanks, Hans