Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59713 invoked from network); 31 Dec 2014 20:28:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Dec 2014 20:28:14 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:45343] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/38-32362-D5C54A45 for ; Wed, 31 Dec 2014 15:28:13 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id B6FD62400D6 for ; Wed, 31 Dec 2014 15:28:10 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wYiJjVBnfhvw for ; Wed, 31 Dec 2014 15:28:10 -0500 (EST) Received: from [192.168.0.13] (unknown [94.13.96.117]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 3DF3D2400A9 for ; Wed, 31 Dec 2014 15:28:10 -0500 (EST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> Date: Wed, 31 Dec 2014 20:27:37 +0000 To: PHP Internals Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Subject: [RFC] Scalar Type Hints From: ajf@ajf.me (Andrea Faulds) Good evening, Parameter type hints for PHP=E2=80=99s 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=E2=80=99d 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=E2=80=99s 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/