Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 686 invoked from network); 7 Apr 2008 16:49:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2008 16:49:12 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:56835] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/D1-26449-5805AF74 for ; Mon, 07 Apr 2008 12:49:11 -0400 Received: from localhost (localhost [127.0.0.1]) by rolig.search.ch (Postfix) with ESMTP id 77A1E3DA810; Mon, 7 Apr 2008 18:49:05 +0200 (CEST) Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04417-05; Mon, 7 Apr 2008 18:49:03 +0200 (CEST) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rolig.search.ch (Postfix) with ESMTP id 622503D5B59; Mon, 7 Apr 2008 18:49:03 +0200 (CEST) Message-ID: <47FA507D.2070108@cschneid.com> Date: Mon, 07 Apr 2008 18:49:01 +0200 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Felipe Pena CC: internals@lists.php.net References: <1207539695.5736.42.camel@pena> <8d7b8c130804062157j60871630r6c3b27c4d3245cb9@mail.gmail.com> <1207576676.5331.49.camel@felipe> In-Reply-To: <1207576676.5331.49.camel@felipe> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at search.ch Subject: Re: [PHP-DEV] Return type hints From: cschneid@cschneid.com (Christian Schneider) Felipe Pena wrote: >> Right, this shouldn't even be on the agenda before we have scalar type >> hints. So, perhaps you can make a patch for that first Felipe? > > I don't thought this before! > Sure, i'll try provide a patch. Just so this side was mentioned once again too: There are people who consider type hints and especially scalar type hints A Bad Thing(tm) as it is contrary to the PHP strength of dynamic typing and automatic type conversion. I just ran into this (IMHO unnecessary) limitation with array_reduce: Why should it only reduce to an int? Why not a string or an array? I plan on submitting a patch for PHP 6 to allow other types too. - Chris