Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A nice, little known C feature: Static array indices in parameter declarations. Parent comment
Calling it with parentheses like &foo() would make @_ empty inside of foo. (Or if you said &foo("whatever") it would pass that as @_ instead.)
sub while { print "@_\n"; &foo(); } sub foo { print "@_\n"; } &while("a","b","c");
a b c (blank line)
sub while { print "@_\n"; &foo; } sub foo { print "@_\n"; } &while("a","b","c");
a b c a b c
There are no comments on this comment yet.
Calling it with parentheses like &foo() would make @_ empty inside of foo. (Or if you said &foo("whatever") it would pass that as @_ instead.)
produces: as the output, and produces: as the output. At any rate, back to the original topic: it still doesn't prevent new keywords from potentially colliding. Oh well.