3 ms·
It looks more obviously "language feature" in Perl, Python, and JavaScript, though: my ($foo, $bar) = f; (foo, bar) = f() var [foo, bar] = f();
by jrockway 15y ago
It looks more obviously "language feature" in Perl, Python, and JavaScript, though:
my ($foo, $bar) = f;
(foo, bar) = f()
var [foo, bar] = f();
- wvenable 15y agoHow are any of those examples significantly different from: 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.