Ah yes, I love nothing more than functions on the left side of assignment.
Edit: Yes, it is a special form, but its still irregular, and that makes it shitty.
Edit: Yes, it is a special form, but its still irregular, and that makes it shitty.
It's a language construct, not a function.
my ($foo, $bar) = f;
(foo, bar) = f()
var [foo, bar] = f(); list($foo, $bar) = f();
Given that PHP uses the array() keyword for constructing arrays, it is perfectly symmetrical. My IDE highlights the list() keyword just the same as all the other keywords.