atom feed13 messages in net.php.lists.internals[PHP-DEV] [RFC] Syntax for variadic f...
FromSent OnAttachments
Nikita PopovAug 28, 2013 8:47 am 
Nikita PopovAug 28, 2013 9:20 am 
Nikita PopovAug 28, 2013 1:15 pm 
Damian WadleyAug 28, 2013 2:01 pm 
Nikita PopovAug 28, 2013 2:06 pm 
Stas MalyshevAug 28, 2013 3:08 pm 
Levi MorrisonAug 28, 2013 4:40 pm 
Lester CaineAug 29, 2013 5:51 am 
Sebastian KrebsAug 30, 2013 2:34 pm 
Nikita PopovSep 14, 2013 4:03 am 
Nikita PopovSep 16, 2013 12:14 pm 
Sara GolemonSep 16, 2013 1:35 pm 
Zeev SuraskiSep 16, 2013 2:40 pm 
Subject:[PHP-DEV] [RFC] Syntax for variadic functions
From:Nikita Popov (niki@gmail.com)
Date:Aug 28, 2013 8:47:03 am
List:net.php.lists.internals

Hi internals!

I'd like to propose an RFC, which adds dedicated syntax for variadic functions:

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

Basically this allows declaring variadics directly in the function signature, rather than fetching the arguments using func_get_args(). Example:

public function query($query, ...$params) { /* ... */ }

What are your thoughts on this?

Thanks, Nikita