Re: Capture Literals

2006-09-24 Thread Austin Hastings
Jonathan Lang wrote: What got me thinking about this was that I couldn't find decent documentation about Capture literals in the synopses. Are Capture literals going to replace or unify the "assuming"/"currying" behaviors? =Austin

Re: Capture Literals

2006-09-22 Thread Jonathan Lang
Larry Wall wrote: : This would mean that the rules for capturing are as follows: : : * Capturing something in scalar context: If it is a pair, it is : captured as a named argument; otherwise, it is captured as the : invocant. : : * Capturing something in list context: Pairs are captured as named

Re: Capture Literals

2006-09-21 Thread Larry Wall
On Thu, Sep 21, 2006 at 10:03:45PM -0700, Jonathan Lang wrote: : How would I construct a capture literal that has both an invocant and : at least one positional argument? How do I distinguish this from a : capture literal that has no invocant and at least two positional : arguments? : : Gut insti