On 23 March 2012 12:55, Carl Mäsak wrote:
> The "shaped arrays/hashes" parts of S09 have been in the planning
> stages a long time in Rakudo. They've had to wait for better MOP and
> better native-types handling (which is another part of S09), but now
> the time for shaped arrays/hashes is surely
On Thu, Mar 22, 2012 at 11:07:08AM -0500, Bruce Gray wrote:
> Well, it works in Niecza. It does not (yet) work in Rakudo:
> 15:25 perl6: my @squares := 0, (-> *@a { @a.elems ** 2 })
> ... *; say ~@squares[^11];
> 15:25 ..niecza v15-4-g1f35f89: OUTPUT<<0 1 4 9 16 25 36 49
> 64 81 100NL
Daniel (>>), Stefan (>):
>> 1. The semicolon operator would allow Perl 6 to support N-dimensional
>> arrays... How would one iterate over that type of array?
>>
>> my num @matrix[ 10 ; 10 ; 10 ];
>>
>> I ask because a natural extension is to add arithmetic operators and
>> you have the beginnings o
> But unless we twist smartmatching semantics for that purpose,
No!
Please, no.
;-)
> it means we cannot do the same fuzziness for the endpoint,
Except that we will be encouraging people to use: * >= $END
as their standard endpoint pattern, which will provide
most of the necessary fuzz.
> S