Re: New variable type: matrix
[email protected] (Nathan Wiger) Tue, 29 Aug 2000 08:33:04 -0700
| Newsgroups | perl.perl6.language.data |
|---|---|
| Message-ID | <[email protected]> |
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/[email protected]/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