Re: [RFC] Fast Parameter Parsing API
| From: | Michael Wallner | Date: | Wed, 28 May 2014 14:47:29 +0000 |
| Subject: | Re: [RFC] Fast Parameter Parsing API | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74584@lists.php.net to get a copy of this message | ||
On 28 May 2014 16:29, Bob Weinand <bobwei9@hotmail.com> wrote:
> Again, we've already talked about the syntax a bit.
>
> We have also other possibilities like:
> zend_parse_parameters(Z_PARAM_ARRAY(input) Z_PARAM_LONG(offset) Z_PARAM_OPTIONAL
> Z_PARAM_ZVAL(z_length) Z_PARAM_BOOL(preserve_keys))
> Or even shorter:
> zend_parse_parameters(ZP_ARRAY(input) ZP_LONG(offset) ZP_OPTIONAL ZP_ZVAL(z_length)
> ZP_BOOL(preserve_keys))
> I think especially the latter is nicely readable and relatively short.
I like the (very) first proposed more than any other following.
--
Regards,
Mike