Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51976 invoked from network); 7 Jul 2009 21:17:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2009 21:17:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 209.85.198.229 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.198.229 rv-out-0506.google.com Received: from [209.85.198.229] ([209.85.198.229:3262] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/B1-37453-E25B35A4 for ; Tue, 07 Jul 2009 16:50:55 -0400 Received: by rv-out-0506.google.com with SMTP id l9so1625726rvb.23 for ; Tue, 07 Jul 2009 13:50:51 -0700 (PDT) Received: by 10.141.19.9 with SMTP id w9mr3956035rvi.162.1246999851869; Tue, 07 Jul 2009 13:50:51 -0700 (PDT) Received: from monster.local ([76.84.30.125]) by mx.google.com with ESMTPS id f21sm6350776rvb.36.2009.07.07.13.50.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Jul 2009 13:50:50 -0700 (PDT) Message-ID: <4A53B528.6000500@chiaraquartet.net> Date: Tue, 07 Jul 2009 15:50:48 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Paul Biggar CC: Lukas Kahwe Smith , Andrei Zmievski , Ilia Alshanetsky , PHP internals References: <2D0F5226-EBCA-4B45-BF01-8ED1C643976C@prohost.org> <4A53825F.1080006@gravitonic.com> <4A53832E.6030105@gravitonic.com> <6D12BDB9-35F6-4CB8-9E25-6571F4C51B59@pooteeweet.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting/casting request for vote From: greg@chiaraquartet.net (Greg Beaver) Paul Biggar wrote: > On Tue, Jul 7, 2009 at 6:41 PM, Lukas Kahwe Smith wrote: >> B) foo($bar); >> function bar((int) $bar) {} >> >> What am I really saying with B)? >> I don't care what you give me, I am going to use it as an int anyways? > > Exactly. Very simple. I would phrase it as "I'll accept anything and > cast it to an int". > > >> Of course I am also quite opposed to sticking this into 5.3. > > On which grounds? If you don't like the feature, please cast a -1 > vote. If its because of the BC problems, I believe you and Johannes > have veto power on what goes into 5.3.x? If so, do you intend to use > it? On the grounds that 5.3.x is now in maintenance mode, no new features. This is not a new way of conducting business in PHP, FYI. Greg