atom feed24 messages in net.php.lists.internals[PHP-DEV] [RFC] Syntax for variadic f...
FromSent OnAttachments
Nikita PopovAug 28, 2013 8:47 am 
Lazare InepologlouAug 28, 2013 9:17 am 
Nikita PopovAug 28, 2013 9:20 am 
Ivan...@ HoaAug 28, 2013 9:32 am 
Matthew LevertonAug 28, 2013 12:27 pm 
Marc BennewitzAug 28, 2013 1:12 pm 
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 
Stas MalyshevAug 28, 2013 4:45 pm 
Patrick ALLAERTAug 29, 2013 4:10 am 
Nikita PopovAug 29, 2013 5:02 am 
Lester CaineAug 29, 2013 5:51 am 
Bryan C. GeraghtyAug 29, 2013 8:06 am 
jbo...@openmv.comAug 30, 2013 1:34 pm 
Sebastian KrebsAug 30, 2013 2:34 pm 
Nikita PopovSep 14, 2013 4:03 am 
Sara GolemonSep 16, 2013 12:02 pm 
Nikita PopovSep 16, 2013 12:14 pm 
Sara GolemonSep 16, 2013 1:35 pm 
Zeev SuraskiSep 16, 2013 1:51 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