in reply to The philosophy behind element reference syntax
I view it as follows: The symbol indicates the *returned* type, like CHR$ in the BASIC's past.
In any case, Perl 6 will use @ary[0] rather than $ary[0] for both single elements and slices. IIRC, Perl 6's $ary[0] will be the same as Perl 5's $ary->[0].
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The philosophy behind element reference syntax
by Jenda (Abbot) on Dec 08, 2004 at 18:26 UTC |