Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25292 invoked from network); 7 Mar 2012 04:18:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2012 04:18:45 -0000 X-Host-Fingerprint: 208.107.21.52 host-52-21-107-208.midco.net Date: Tue, 06 Mar 2012 23:18:43 -0500 Received: from [208.107.21.52] ([208.107.21.52:18700] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/38-15021-3A1E65F4 for ; Tue, 06 Mar 2012 23:18:43 -0500 Message-ID: <52.38.15021.3A1E65F4@pb1.pair.com> To: internals@lists.php.net References: User-Agent: slrn/pre1.0.0-18 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit X-Posted-By: 208.107.21.52 Subject: Re: [PHP-DEV] Scalar Type Hinting From: weierophinney@php.net (Matthew Weier O'Phinney) On 2012-03-06, Anthony Ferrara wrote: > My concern is the total lack of talk on-list about it. It's obviously > not perfect, but there has been little to no talk on-list about it. > That is an indication to me that it's not ready or that it won't get > in if put to a vote... > > Thoughts? I really like the proposal you set forth. I have zero clue what impact it would have on performance, however, so I'm deferring that discussion to those who do. As a user and framework developer, I'd love to see it in place -- casting support at the function/method parameter level would greatly simplify a lot of code I write. > On Tue, Mar 6, 2012 at 6:10 PM, Simon Schick > wrote: >> Hi, >> >> It got quite around that because we have some RFCs to this where the >> functionality seems to be defined as the people thought it should be. >> Otherwise they can raise their hands and write a mail that they want to >> update the RFC - but as there's no one doing that, I think we're quite >> close to what we wanted. >> >> Take a look at it and feel free to add your ideas in this thread. >> https://wiki.php.net/rfc/parameter_type_casting_hints >> https://wiki.php.net/rfc/object_cast_to_types >> >> Bye >> Simon >> >> 2012/3/6 Kris Craig >> >>> Wow no offense, but your timing is terrible, Raymond!  We've been going >>> back and forth on this for the past couple weeks now, though the discussion >>> has quieted for the moment. >>> >>> I would suggest you go through some of the recent posts on Internals. >>> Right now there basically is no solid consensus on this issue, though some >>> of us have been working to change that.  But as it stands now, I'm not >>> aware of any plans to introduce expanded typing of any kind in the >>> foreseeable future.  And even if we did, I highly doubt it would happen >>> before PHP 6. >>> >>> --Kris >>> >>> >>> On Mon, Mar 5, 2012 at 6:20 PM, Raymond Irving wrote: >>> >>> > Hello, >>> > >>> > I came across some info on the web that states that scalar type hinting >>> was >>> > added to the PHP trunk but it did not make it's way into 5.4 because of >>> > objections from the community. Will it ever make it's way into 5.5? >>> > >>> > I know PHP is considered to be a weak typed language but it should also >>> be >>> > about freedom. Freedom for a PHP developer to choose to use scalar type >>> > hinting whenever he/she sees the need. >>> > >>> > >>> > Best regards, >>> > __ >>> > Raymond >>> > >>> -- Matthew Weier O'Phinney Project Lead | matthew@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc