On 08/30/2013 05:23 PM, Nikita Popov wrote:
Hi internals!

This RFC proposes to add a syntax for argument unpacking:

     https://wiki.php.net/rfc/argument_unpacking

Basically, this is the "complement" of the variadics RFC: It is not about
declaring variadic functions, but about calling them.

The syntax it introduces looks as follows:

     $db->query($query, ...$params);

Thoughts?

Thanks,
Nikita


can't we use a new cast operator like (unpack) for this instead of the three dots?

$db->query($query, (unpack) $params); ?

Andrey

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to