develooper Front page | perl.perl5.porters | Postings from June 2013

Re: key/value hash and index/valuse array slices syntax

Thread Previous | Thread Next
Ruslan Zakirov
June 16, 2013 11:01
Re: key/value hash and index/valuse array slices syntax
Message ID:

I've re-pushed the branch with new tests. Also, wrote "summary/blueprint"
(attached)... no blueprint as I've dropped it with `git clean -ff -dx` :(

So far I'm happy with functionality. People who cares should take a look at
tests and think of more situations that should be covered. Once there is
some sort of agreement on tests completness I will copy them and convert
into tests for index/value array slices.

On Mon, Jun 3, 2013 at 4:06 PM, Ruslan Zakirov <>wrote:

> HI,
> I've updated patches that add key/value hash slices to perl syntax:
> my %sub_hash = %hash{qw(some keys go here)};
> This feature was discussed [1] back in Feb with Brad Gilbert. We agreed
> that for consistency this should work with arrays too as index/value array
> slice. I've added array functionality. Also, wrote a few basic tests.
> Main question is whether should I continue or stop right there as it never
> will be in the core?
> A quick review of the code [2] would be helpful too.
> [1]
> [2]
> --
> Best regards, Ruslan.

Best regards, Ruslan.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About