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

Re: New variable type: matrix

Thread Previous | Thread Next
From:
Nathan Wiger
Date:
August 29, 2000 08:44
Subject:
Re: New variable type: matrix
Message ID:
39ABD7B0.F1BE0130@wiger.org
Baris wrote:
> 
> Hi,
> >   ^foo = ([1, 2], [3, 4]);      # I know, it's taken, I helped :-)
> >   $foo[0,0];                    # uh-oh
> >
> >Then adding a new fundamental type and syntax is not only unnecessary,
> >but silly.
> 
> Why do you think that individual elements are perl scalars? 

To avoid anyone getting yelled at by TomC or someone else: Yes. Anything
individual in Perl is a scalar. By definition. Please don't try to
change this. 

For more details on this, please read this email:

http://www.mail-archive.com/perl6-language@perl.org/msg00329.html

Under these definitions - which are at the core of Perl - piddles are
just @arrays (maybe special arrays, though, see Buddha's RFC) and do not
warrant their own data type. Yes, I do view this as a good thing.

-Nate

Thread Previous | Thread Next


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