Re: Question about pairs

2005-02-22 Thread Larry Wall
On Tue, Feb 22, 2005 at 09:07:27PM +0800, Autrijus Tang wrote: : On Tue, Feb 22, 2005 at 12:20:35AM -0800, Larry Wall wrote: : > That seems right to me. Or at least right associative. :-) : > : > In any event, right associativity seems more useful in this case. : : Okay, implemented as such. :

Re: Question about pairs

2005-02-22 Thread Autrijus Tang
On Tue, Feb 22, 2005 at 12:20:35AM -0800, Larry Wall wrote: > That seems right to me. Or at least right associative. :-) > > In any event, right associativity seems more useful in this case. Okay, implemented as such. Of the "non-chaining binaries" in S06: => but does cmp <=> .. ^.. ..^ ^

Re: Question about pairs

2005-02-22 Thread Larry Wall
On Mon, Feb 21, 2005 at 09:37:02PM -0600, Steve Peters wrote: : On Mon, Feb 21, 2005 at 11:32:16AM -0800, Larry Wall wrote: : > On Mon, Feb 21, 2005 at 02:07:10PM +, osfameron wrote: : > : >In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- : > : >like C<[...]> and

Re: Question about pairs

2005-02-21 Thread Steve Peters
On Mon, Feb 21, 2005 at 11:32:16AM -0800, Larry Wall wrote: > On Mon, Feb 21, 2005 at 02:07:10PM +, osfameron wrote: > : >In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- > : >like C<[...]> and C<{...}>. The objects it constructs are called > : >"pairs" > : >

Re: Question about pairs

2005-02-21 Thread Larry Wall
On Mon, Feb 21, 2005 at 02:07:10PM +, osfameron wrote: : >In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- : >like C<[...]> and C<{...}>. The objects it constructs are called : >"pairs" : >and they consist of a key (the left operand of the C<< => >>), and a

Re: Question about pairs

2005-02-21 Thread osfameron
In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- like C<[...]> and C<{...}>. The objects it constructs are called "pairs" and they consist of a key (the left operand of the C<< => >>), and a value (the right operand). Can pairs also be used to create linke

Re: Question about pairs

2005-02-21 Thread Larry Wall
On Mon, Feb 21, 2005 at 07:50:12PM +0800, Autrijus Tang wrote: : On Mon, Feb 21, 2005 at 09:33:33PM +1100, Damian Conway wrote: : > In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- : > like C<[...]> and C<{...}>. The objects it constructs are called "pairs" : > an

Re: Question about pairs

2005-02-21 Thread Juerd
Steve Peters skribis 2005-02-21 8:08 (-0600): > Great! I figured I was just missing something. As a followup, is there > someplace where the raw Pod for the Apocalypses, Exegeses, and Synopses live. > The Pod versions would be much easier to search in bulk than going through > the web pages on

Re: Question about pairs

2005-02-21 Thread Steve Peters
On Mon, Feb 21, 2005 at 09:33:33PM +1100, Damian Conway wrote: > Steve Peters wrote: > > >While looking into Perl 6 and pugs, I noticed a problem with Pairs pretty > >quickly. Although pairs look like a very useful data type, I could find > >in the "Perl 6 and Parrot Essentials" or any Apocolyp

Re: Question about pairs

2005-02-21 Thread Autrijus Tang
On Mon, Feb 21, 2005 at 09:33:33PM +1100, Damian Conway wrote: > In Perl 6, C<< => >> is a fully-fledged anonymous object constructor -- > like C<[...]> and C<{...}>. The objects it constructs are called "pairs" > and they consist of a key (the left operand of the C<< => >>), and a >

Re: Question about pairs

2005-02-21 Thread Damian Conway
Steve Peters wrote: While looking into Perl 6 and pugs, I noticed a problem with Pairs pretty quickly. Although pairs look like a very useful data type, I could find in the "Perl 6 and Parrot Essentials" or any Apocolypse or other document on how to get the key or value from a pair. I was think

Question about pairs

2005-02-21 Thread Steve Peters
Sorry if this email is nearly duplicated, but I may have had the wrong email address on the firt email I sent. While looking into Perl 6 and pugs, I noticed a problem with Pairs pretty quickly. Although pairs look like a very useful data type, I could find in the "Perl 6 and Parrot Essentials"