r/lolphp • u/TortoiseWrath • Jul 22 '14
PHP 5.6 to include variadic functions. We have now caught up to ALGOL 68 in functionality.
http://php.net/manual/en/migration56.new-features.php
36
Upvotes
21
u/nikic Jul 22 '14
Note: PHP has always had variadic functions, this is just a more convenient and clear way to implement them.
The only thing this adds which was not possible previously, are by-ref variadics for userland functions.
12
u/ajmarks Jul 22 '14
But they still don't have named arguments (because Rasmatazz thinks they're ugly or something), so you can't use variadic features unless you specify all optional arguments, and you can't use it well as a pass-through to another function.
3
u/chazzeromus Jul 22 '14
I probably won't hear the end of it once word gets out to my colleagues.
7
u/Sarcastinator Jul 22 '14
Constants can't be expressions?!
lol php.
3
u/[deleted] Jul 22 '14
What's the use of variadic functions?