Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44602 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53504 invoked from network); 1 Jul 2009 20:28:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 20:28:34 -0000 X-Host-Fingerprint: 200.142.121.42 unknown Received: from [200.142.121.42] ([200.142.121.42:24523] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/12-43450-FE6CB4A4 for ; Wed, 01 Jul 2009 16:28:31 -0400 Message-ID: To: internals@lists.php.net Date: Wed, 01 Jul 2009 17:28:31 -0300 User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 200.142.121.42 Subject: Re: RFC: Type hinting revisited for PHP 5.3 From: rodrigo.saboya@bolsademulher.com (Rodrigo Saboya) Ilia Alshanetsky wrote: > There has been quite a bit of discussion on this list, IRC, developer > meetings, etc... about introduction of type hinting to PHP. Most people > appear to think that this would be a good idea, but there is a reason > why it is not in PHP already. The main source of conflict appears to be > that in some cases typical.. This would be a great feature IMO. However, like others, I'm a bit concerned on how can consistency with internal functions be achieved. I don't think it would be that beneficial without method overloading by method signature. In fact, type hinting would be a step foward in that direction, and my head it makes sense that both features arrive togheter. I know nothing about php internals, method overloading by signature is something too hard to implement? And, while type hinting and method overloading are things I really miss in php when comparing to other languages (amongst other thinkgs) and I do think they would be fantastic, I think HEAD is more suited for thoses changes rather than 5.3 branch. (But I must confess I loved LSB and Closures in 5.3 :) ) Regards Rodrigo Saboya