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

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

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
June 11, 2013 01:07
Subject:
Re: key/value hash and index/valuse array slices syntax
Message ID:
20130611010721.GA6226@fernweh.plasmasturm.org
* David Nicol <davidnicol@gmail.com> [2013-06-10 01:55]:
> one of the perl6 RFCs suggested allowing a regex as a hash index
>
>    @hash{/REGEX/}
>
> to mean
>
>   @hash{ grep /REGEX/, keys %hash }
>
> I have no idea how well-received that suggestion was

This proposal is an idle thought, Ruslan’s proposal is a patch, and the
two are completely orthogonal. This idea should go in a separate thread.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About