Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29095 invoked from network); 7 Jul 2009 18:38:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2009 18:38:55 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.222.198 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.222.198 mail-pz0-f198.google.com Received: from [209.85.222.198] ([209.85.222.198:35906] helo=mail-pz0-f198.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/27-17523-D36935A4 for ; Tue, 07 Jul 2009 14:38:54 -0400 Received: by pzk36 with SMTP id 36so5068092pzk.29 for ; Tue, 07 Jul 2009 11:38:50 -0700 (PDT) Received: by 10.142.193.13 with SMTP id q13mr2023009wff.222.1246991930921; Tue, 07 Jul 2009 11:38:50 -0700 (PDT) Received: from ?216.145.54.15? (socks3.corp.yahoo.com [216.145.54.15]) by mx.google.com with ESMTPS id 30sm1912219wfg.30.2009.07.07.11.38.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Jul 2009 11:38:50 -0700 (PDT) Message-ID: <4A539638.3060704@lerdorf.com> Date: Tue, 07 Jul 2009 11:38:48 -0700 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Ilia Alshanetsky CC: PHP internals References: <2D0F5226-EBCA-4B45-BF01-8ED1C643976C@prohost.org> In-Reply-To: <2D0F5226-EBCA-4B45-BF01-8ED1C643976C@prohost.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting/casting request for vote From: rasmus@lerdorf.com (Rasmus Lerdorf) Ilia Alshanetsky wrote: > Last week or so there was a fairly detailed discussion on the internals > list regarding type hinting based on my original patch. Since then the > patch has been revised to address the major concerns that were > identified (breakage of binary compatibility) as well extended with > additional functionality (object hint, type casting, reflection support, > etc...). > > The final patch is available here: http://ilia.ws/patch/type_hint_53_v2.txt > The test suit is available here: http://ia.gd/patch/type_hint_tests.tar.bz2 > > I would like to ask all developers to voice their opinions of whether it > makes sense to add this to 5.3 or to throw it away (either one is fine > btw). To keep the process simple & flamewar free, please restrict > yourself to +/- (1/0), next week monday I'll run a tally of the votes > and based on the result we can determine how to proceed further. -1 on 5.3. The window for adding new major features to 5.3 is obviously long gone. Not sure why you are even suggesting it. +0 on parts of it for the next major release. You still haven't convinced me that strict type checking won't cause more problems than it will solve, but I do see the benefits. -Rasmus