develooper Front page | perl.perl6.language.data | Postings from September 2000

Re: RFC 204 (v2) Arrays: Use list reference for multidimensional array access

From:
Bart Lateur
Date:
September 26, 2000 22:19
Subject:
Re: RFC 204 (v2) Arrays: Use list reference for multidimensional array access
Message ID:
9q03tssa2425rpkpsas1q3f4n103ck008p@4ax.com
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.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About