[RFC] Scalar Type Hints
| From: | Andrea Faulds | Date: | Wed, 31 Dec 2014 20:27:37 +0000 |
| Subject: | [RFC] Scalar Type Hints | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-80028@lists.php.net to get a copy of this message | ||
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/