develooper Front page | perl.perl5.porters | Postings from December 2017

Re: [perl #90240] keys(@array) gives too many indices

Thread Next
From:
Zefram
Date:
December 12, 2017 06:56
Subject:
Re: [perl #90240] keys(@array) gives too many indices
Message ID:
20171212065616.GZ25404@fysh.org
keys(@array) has a defined meaning that is consistent with the
array-as-unbroken-sequence model that is used in most places.  To change
it to implement the equivalent operation for the sparse-array model
would be disruptive.  We shouldn't do that.  If you really like the
discouraged sparse arrays and want a key-listing operation for them, you
should implement that as an XS module and put it on CPAN.  This ticket
should be closed.

-zefram

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