zsdc wrote:
Confusion? You should read 6th Apocalypse by Larry Wall and the appropriate Exegesis by Damian Conway:
http://dev.perl.org/perl6/apocalypse/A06.html http://dev.perl.org/perl6/exegesis/E06.html
Now, _that_ is confusing. :)
I think that's an understatement. Blood is coming out of my ears after reading a few pages of the first one...
Well, that's Apocalypse after all...
But don't worry, while we'll be able to write signatures like:
method (int *@) x ($a: int $b, num ?$c, str +$d is rw, *%e, [EMAIL PROTECTED]) {...}
we won't _have_ to do it. We'll always be able to write:
sub x { my ($a, $b) = @_; ... }
or:
sub x { my $a = shift; my $b = shift; ... }
just like we do now. The same is true for e.g. sorting. Just because this will work:
@unsorted ==> sort [ {+$^elem}, {$^b.name cmp $^a.name} is insensitive, {-M}, {.name}=>&fuzzy_cmp, &fuzzy_cmp, ] ==> @sorted;
doesn't mean we _have_ to use it for simple sorting, as this:
@sorted = sort @unsorted;
will also work as expected. As Larry Wall says: "Perl is designed to give you several ways to do anything, so consider picking the most readable one."
Sorry if I scared anyone. Perl 6 will give us lots of extremely powerful new tools, but we won't have to use them all at once. In fact, Perl 6 will be able to run programs written entirely in Perl 5 (see http://www.poniecode.org/) so we won't even have to write Perl 6 to use Perl 6...
-- ZSDC
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>