Re: call, call(), .call, and captures

2006-09-21 Thread Markus Laire
On 9/20/06, Aaron Sherman [EMAIL PROTECTED] wrote: Larry Wall wrote: What we really need is a unary operator that is sugar for [,](=(...)). Just don't anyone suggest *. :-) I was thinking about that. I wonder if [\] would make sense, or is that just begging to have in-editor parsers fall

Dumb list-flattening question.

2006-09-21 Thread Mark J. Reed
Ok, I dkimmed through the synopses again and didn't see this offhand. If I have two arrays @a and @b and I wish to create a two-element list out of them - a la Perl5 ([EMAIL PROTECTED], [EMAIL PROTECTED]) - what's the correct way to do that in Perl6? If it's still ([EMAIL PROTECTED], [EMAIL

Re: Dumb list-flattening question.

2006-09-21 Thread Juerd
Mark J. Reed skribis 2006-09-21 9:53 (-0400): If I have two arrays @a and @b and I wish to create a two-element list out of them - a la Perl5 ([EMAIL PROTECTED], [EMAIL PROTECTED]) - what's the correct way to do that in Perl6? If it's still ([EMAIL PROTECTED], [EMAIL PROTECTED]), then

Captures: Synopsis update

2006-09-21 Thread Aaron Sherman
[EMAIL PROTECTED] wrote: Maintainer: Larry Wall [EMAIL PROTECTED] Date: 10 Aug 2004 - Last Modified: 18 Sept 2006 + Last Modified: 20 Sept 2006 Number: 2 - Version: 69 + Version: 70 +| capture/arguments/match +|$args; # all of the above I'll read that as

Re: Dumb list-flattening question.

2006-09-21 Thread Aaron Sherman
Mark J. Reed wrote: Ok, I dkimmed through the synopses again and didn't see this offhand. If I have two arrays @a and @b and I wish to create a two-element list out of them - a la Perl5 ([EMAIL PROTECTED], [EMAIL PROTECTED]) - what's the correct way to do that in Perl6? If it's still ([EMAIL

Re: Dumb list-flattening question.

2006-09-21 Thread Mark J. Reed
Mark J. Reed wrote: Ok, I dkimmed through the synopses again and didn't see this offhand. That's what I get for dkimming instead of reading. Or even skimming. OK, so Capture objects fill the ecological niche of references in Perl 6. Got it. Perhaps we should also mention the use of

Re: Captures: Synopsis update

2006-09-21 Thread Larry Wall
On Thu, Sep 21, 2006 at 10:29:57AM -0400, Aaron Sherman wrote: : I'll read that as conversation terminated. The conversation is never terminated. However, every now and then I make feeble attempts to be decisive. :) : Can you please update S03's Junctive operators section to note how the :

Re: Captures: Synopsis update

2006-09-21 Thread Mark J. Reed
On 9/21/06, Larry Wall [EMAIL PROTECTED] wrote: : note how the ambiguity of the following are resolved: : : a|$b : a | $b : a |$b : Don't think so. The situation is exactly analogous to: a%$b a % $b a %$b The cultural ambiguity is also being reduced insofar as we're trying

Re: Captures: Synopsis update

2006-09-21 Thread Mark J. Reed
On 9/21/06, Larry Wall [EMAIL PROTECTED] wrote: A method never takes arguments unless you use : or (), so those are all infix. Well, all righty then. Yay for unambiguity! Or disambiguation. Or nonambiguosity. Or whatever... The design team worked Really Hard to get rid of that particular

The bare constants bear

2006-09-21 Thread Aaron Sherman
All sounds good up to: Larry Wall wrote: The cultural ambiguity is also being reduced insofar as we're trying to discourage use of bare constants in favor of sigilled constants. If you see a bare function name you should generally assume it has arguments in Perl 6. Well, in that case, should

Re: Good list-flattening question.

2006-09-21 Thread Mark Stosberg
Mark J. Reed wrote: Ok, I dkimmed through the synopses again and didn't see this offhand. If I have two arrays @a and @b and I wish to create a two-element list out of them - a la Perl5 ([EMAIL PROTECTED], [EMAIL PROTECTED]) - what's the correct way to do that in Perl6? If it's still

Re: Capture sigil

2006-09-21 Thread Sam Vilain
Larry Wall wrote: Okay, I think this is worth bringing up to the top level. Fact: Captures seem to be turning into a first-class data structure that can represent: argument lists match results XML nodes anything that requires all of $, @, and % bits. Also; role

Capture Literals

2006-09-21 Thread Jonathan Lang
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 instinct: if the first parameter in a list is delimited from the rest using a

Re: Capture sigil

2006-09-21 Thread Jonathan Lang
Two questions: 1. How would the capture sigil affect the use of capture objects as replacements for perl5's references? 2. With the introduction of the capture sigil, would it be worthwhile to allow someone to specify a signature as a capture object's 'type'? That is: my :(Dog: Str $name,

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