Will @_ then act as the default array in Perl 6? I wasn't sure about this, given how references have thus far been described.
Could the default behavior possibly be dealt with like the following? (assuming I'm remembering correctly that @_ is still going to be the default argument array for subrutines whse arguments haven't been otherwise specified)
sub foo { my $bar = .shift // "some default"; my $baz = .pop // "some other default"; }
In reply to Re: Re: An Exegesis 4 thought
by Anonymous Monk
in thread An Exegesis 4 thought
by huxley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |