Re: RFC 204 (v2) Arrays: Use list reference for multidimensional array access
[email protected] (Bart Lateur) Wed, 27 Sep 2000 07:20:18 +0200
| Newsgroups | perl.perl6.language.data |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On Mon, 25 Sep 2000 19:26:38 -0700, Nathan Wiger wrote: >> I agree with both of you. It would be nice if @$ precedence worked as Bart >> specified, but I still think that arrays should be arrays. > >The problem is that > > $name = "myarray"; > @$name = (1,2,3); > print @$name[0,1]; # 1,2 > >Is very consistent currently. Change one and you have to change the >precedence and parsing of all symbolic refs. You are suggesting to keep a weird precedence rule, just to ease symbolic dereferencing!?! That's... obscene. -- Bart.