Re: New variable type: matrix

[email protected] (Dan Sugalski) Tue, 29 Aug 2000 12:23:22 -0400
Newsgroups perl.perl6.language.data
Message-ID <[email protected]>
At 04:58 PM 8/28/00 -0600, Doug Hunt wrote:
>What I meant to say (but failed, alas) was that I support the idea for a
>new perl variable type called compact array:
>
>$foo -- scalar
>@foo -- array
>%foo -- hash
>^foo -- compact array (or whatever notation)

This isn't really needed--a compact array is just an array with Fancy Bits 
living under the hood. Now, on the other hand, if you wanted to define a 
new type for matrices, that would make sense. (Though then you have to 
wonder what the difference between a 1-D matrix and an array was...) 
Hijacking * as the prefix for matrices wouldn't be unreasonable--it's sort 
of a picture of something with bits going in multiple directions.

On the other hand, just extending out arrays to be multidimensional may 
well be good enough.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[email protected]                         have teddy bears and even
                                      teddy bears get drunk