Buddha Buck wrote:
> At 05:35 PM 8/31/00 +, David L. Nicol wrote:
> >Buddha Buck wrote:
> > > > The array
> > > > syntax would also be useful in multi-dimensional arrays.
> > >
> > > That is if multi-dimensional arrays are implemented as lists-of-lists,
> > > which they might not be.
> >
> >Ev
At 05:35 PM 8/31/00 +, David L. Nicol wrote:
>Buddha Buck wrote:
> > > The array
> > > syntax would also be useful in multi-dimensional arrays.
> >
> > That is if multi-dimensional arrays are implemented as lists-of-lists,
> > which they might not be.
>
>Even if they aren't implemented as lol,
Perl6 RFC Librarian wrote:
> arsenal. The constructs are:
>
> $ref->[[LIST]]
> $ref->{{LIST}}
>
> The proposed respective meanings:
>
> $ref->[$elem[0]]->[$elem[1]}->[...]->[$elem[-1]]
> $ref->{$elem[0]}->{$elem[1]}->{...}->{$elem[-1]}
why not just use single
Jarkko Hietaniemi wrote:
> > By saying $hashref->{[LIST]} instead of $hashref->{{LIST}},
> > the only thing you would change is the semantics of the expression,
>
> Huh? Unless I missed something I didn't propose using $hashref->{[]}
> anywhere... I used $ref->{{LIST}} and $ref->[[LIST]].
Rig
On Wed, Aug 30, 2000 at 11:10:54AM -0400, John Porter wrote:
> > Snatch two syntax constructs away from the jaws of illegal syntax and
> > an unfortunate syntax, and make them useful weapons of the Perl
> > arsenal. The constructs are:
> >
> > $ref->[[LIST]]
> > $ref->{{LIST}}
> >
>
> Snatch two syntax constructs away from the jaws of illegal syntax and
> an unfortunate syntax, and make them useful weapons of the Perl
> arsenal. The constructs are:
>
> $ref->[[LIST]]
> $ref->{{LIST}}
>
> The proposed respective meanings:
>
> $ref->[$elem[0]]->[$ele
> On Tue, Aug 29, 2000 at 07:27:15PM -0700, Peter Scott wrote:
> > > $r->{{qw(a b c d e f g h)}}
> > > $r->{a}->{b}->{c}->{d}->{e}->{f}->{g}->{h}
> >
> > $r->{a}{b}{c}{d}{e}{f}{g}{h}
> >
> > which is only one character longer than the proposal...
>
> Except in the case wh
On Tue, Aug 29, 2000 at 07:27:15PM -0700, Peter Scott wrote:
> > $r->{{qw(a b c d e f g h)}}
> > $r->{a}->{b}->{c}->{d}->{e}->{f}->{g}->{h}
>
> $r->{a}{b}{c}{d}{e}{f}{g}{h}
>
> which is only one character longer than the proposal...
Except in the case where you don't have
>Having the
>indices in one place saves a lot of characters. Compare
>
> $r->{{qw(a b c d e f g h)}}
>
>versus
>
> $r->{a}->{b}->{c}->{d}->{e}->{f}->{g}->{h}
But I would compare it to
$r->{a}{b}{c}{d}{e}{f}{g}{h}
which is only one character longer than the proposal...
-