John M. Dlugosz wrote:
> I wrote <http://www.dlugosz.com/Perl6/web/return.html> to clarify and
> extrapolate from what is written in the Synopses.

A few comments:

1. I was under the impression that identifiers couldn't end with - or '.
2. While list context won't work with named return values, "hash
context" ought to.
3. The positional parameters of a Capture object essentially act as a
list with a user-defined index, don't they?  There _is_ some crossover
between the named parameter keys and the positional parameter
user-defined index, in that you ought to be able to provide a name and
have the Capture figure out which one you're asking for.  This works
because there should be no overlap between the keys of the hash and
the user-defined indices of the list.

-- 
Jonathan "Dataweaver" Lang

Reply via email to