in reply to Re: Perl 6 and Perl 5 parsing
in thread Perl 6 and Perl 5 parsing
So while Perl 6's grammar is more mutable in theory; it is less frequently mutated by accident.
Another interesting consequence of this decision is that the blocks supplied to map and grep are not a special syntax, so they require a comma. Likewise use of & in a sub signature does not change parsing. On the other hand, bare blocks are just anonymous closures in Perl 6, so they can be passed in any position, and are not restricted to the first argument as they are with Perl 5's & prototype.
|
---|