Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52165 invoked from network); 1 Jan 2015 16:54:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jan 2015 16:54:19 -0000 Authentication-Results: pb1.pair.com header.from=mails@thomasbley.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mails@thomasbley.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain thomasbley.de from 85.13.137.24 cause and error) X-PHP-List-Original-Sender: mails@thomasbley.de X-Host-Fingerprint: 85.13.137.24 dd15934.kasserver.com Received: from [85.13.137.24] ([85.13.137.24:42923] helo=dd15934.kasserver.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/FE-60454-5BB75A45 for ; Thu, 01 Jan 2015 11:54:13 -0500 Received: from dd15934.kasserver.com (dd0802.kasserver.com [85.13.143.1]) by dd15934.kasserver.com (Postfix) with ESMTPSA id 80E6D2605AB; Thu, 1 Jan 2015 17:54:08 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SenderIP: 95.90.235.1 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> References: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> To: internals@lists.php.net, ajf@ajf.me Message-ID: <20150101165408.80E6D2605AB@dd15934.kasserver.com> Date: Thu, 1 Jan 2015 17:54:08 +0100 (CET) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints From: mails@thomasbley.de ("Thomas Bley") thanks for the rfc! Currently we allow: function test(Array $o){} test([]); function test2(array $o){} test2([]); So I propose to allow also uppercase type names: ublic function __construct(String $name, Int $age, Float $cuteness, Bool $evil) { Regards Thomas Andrea Faulds wrote on 31.12.2014 21:27: > Good evening, > > Parameter type hints for PHP’s scalar types are a long-requested feature for > PHP. Today I am proposing an RFC which is a new attempt to add them to the > language. It is my hope that we can finally get this done for PHP 7. > > I’d like to thank Dmitry, who emailed me and gave me some feedback on the > draft RFC and some improvements to the patch. He encouraged me to put this to > internals sooner rather than later, as it’s a feature many people are hoping > will be in PHP 7. > > The new RFC can be found here: https://wiki.php.net/rfc/scalar_type_hints > > As well as the RFC, there is a working Zend Engine III patch with tests, and an > incomplete specification patch. > > Please read the RFC (and specification patch, if you wish) and tell me your > thoughts. > > Thanks! > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >