Smylers wrote:
> I had been assuming that Perl 6 would continue the tradition that
> anonymous subroutines don't have names.
>
> 'Synopsis 6' contains this line:
>
> On an anonymous subroutine, any return type can only go after the
> name:
>
> Which "name" would that be?
>
> The example given:
>
> $lay = sub returns Egg {...};
>
> suggests that return types can only go after "the place where the name
> would be if this subroutine had been a named subroutine instead of an
> anonymous one".
>
> Or am I missing something?
No, we did. :) That should be:
On an anonymous subroutine, any return type can only go after the
C<sub> keyword:
I've fixed it in the cvs version.
Allison