in reply to Revisiting array context
Now, if you are going to bless things anyway, why not develop it a little into a "numeric vector" class, that supports operator + overloading etc. and members like inner product, absolute value, and other vector things?
Also today you can use mapcar to sum your vectors.
Now back to the incrementing of hash slices: In order to make it worthwhile, you need both a generalized hash slice and a way to apply the ++ to all the members in it. I think functional programming constructs can do a lot of that in Perl 5, and I hope it is fairly simple and natural in Perl 6.
— John
|
|---|