develooper Front page | perl.perl6.language | Postings from April 2006

Capturing the Captures.

From:
Audrey Tang
Date:
April 15, 2006 08:44
Subject:
Capturing the Captures.
Message ID:
44411491.7060607@audreyt.org
As promised yesterday, today gaal and I entered a gobby Q/A session,
producing the first document under the Perl6::FAQ tree, on the newly
coined Capture objects (previously known as Arguments) objects:

    http://svn.openfoundry.org/pugs/docs/Perl6/FAQ/Capture.pod

A HTMLized version is also available online:

    http://pugs.blogs.com/pugs/2006/04/perl6faqcapture.html

With gaal's clearly-worded, carefully probing questions, I found myself
discovering unforeseen consequences of the new design -- e.g. @y :=
(1,2,3) is actually an error, and one would need to say *@y := (1,2,3)
instead.

Fortunately, the design seems to stand against the scrutiny. So after
TimToady reported consent from @Larry on the s:g/Arguments/Capture/ name
change, I committed that to the Synopses.

As this represents a rather drastic departure from Perl 5's model, I'd
very much welcome reviews, comments, as well as more questions -- please
feel free to commit directly to the FAQ file, and we'll pick up from
there. :-)




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About