Re: [RFC] Strict type hints (parameter and return value)
| From: | Paul Biggar | Date: | Thu, 17 Apr 2008 19:51:36 +0000 |
| Subject: | Re: [RFC] Strict type hints (parameter and return value) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37119@lists.php.net to get a copy of this message | ||
On Thu, Apr 17, 2008 at 9:04 PM, Stanislav Malyshev <stas@zend.com> wrote:
> In fact, we have good old conversion system used in parse_parameters. So
> why not use the same rules? That'd make at least some sense - give PHP
> programmers the tools that extension C programmers have. I still wouldn't
> like it too much but at least it would make sense :)
As I read it, these convert the parameter to the expected type, if it
is not already, and fail when this is not possible. All thats missing
is scalar and numeric to be consistent with the is_*(), and its
perfect.
Paul
--
Paul Biggar
paul.biggar@gmail.com